floating popups

This commit is contained in:
ggodot 2024-12-25 01:25:04 +01:00
parent 52b81fb68a
commit 2e0074eea4
2 changed files with 16 additions and 20 deletions

View File

@ -1,9 +1,7 @@
# TODO
- [ ] more widgets
- [ ] popup
- [ ] notifications
- [ ] notifications - dunst
- [ ] borders and separation of colors
# Bugs
- [ ] Deflout not working
- [ ] add jq as dependencies

View File

@ -15,8 +15,8 @@ alt = "mod1"
home = os.path.expanduser('~')
keys = [
# A list of available commands that can be bound to keys can be found
# at https://docs.qtile.org/en/latest/manual/config/lazy.html
#Kills focused window
Key([mod], "q", lazy.window.kill(), desc="Kill focused window"),
# Switch between windows
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"),
Key([mod], "l", lazy.layout.right(), desc="Move focus to right"),
@ -46,7 +46,6 @@ keys = [
lazy.layout.toggle_split(),
desc="Toggle between split and unsplit sides of stack",
),
Key([mod], "Return", lazy.spawn('alacritty'), desc="Launch terminal"),
# Toggle between different layouts as defined below
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
Key([mod], "f", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"),
@ -70,7 +69,7 @@ keys = [
Key([mod, "control"], "Up", lazy.spawn("wlr-randr --output VGA-1 --transform 180"), desc="sets second monitor to 180 rotation"),
Key([mod, "control"], "Right", lazy.spawn("wlr-randr --output VGA-1 --transform 270"), desc="sets second monitor to 270 rotation"),
# Change keyboard leyout
# Change keyboard layout
Key([mod], "z", lazy.widget["keyboardlayout"].next_keyboard(), desc="Next keyboard layout"),
]
@ -116,10 +115,7 @@ for i in groups:
)
layouts = [
layout.Columns(
border_focus_stack=["#d75f5f", "#8f3d3d"],
border_width=4
),
layout.Columns(),
# layout.Max(),
# layout.Stack(num_stacks=2),
# layout.Bsp(),
@ -189,7 +185,7 @@ icon = widget.TextBox(
group_box = widget.GroupBox(
highlight_method='line',
highlight_color= colors[1],
highlight_color= colors[11],
background = colors[2],
other_current_screen_border = colors[6],
other_screen_border = colors[6],
@ -210,8 +206,9 @@ kb_layout = widget.KeyboardLayout(
)
wifi = widget.Wlan(
#!TODO configure
format = "󰖩 {essid} {percent:2.0%} ",
interface = "wlp2s0",
mouse_callbacks={"Button1":lazy.spawn("alacritty --class float -e nmcli device wifi")},
background=colors[2],
**rounded_right,
)
@ -226,7 +223,7 @@ vpn = widget.GenPollCommand(
ram = widget.Memory(
format = "{MemFree:.0f} 󰓡 {SwapFree:.0f} ",
mouse_callbacks={"Button1":lazy.spawn("alacritty -e btop")},
mouse_callbacks={"Button1":lazy.spawn("alacritty --class float -e btop ")},
background=colors[6],
mesure_mem="M",
mesure_swap="M",
@ -236,7 +233,7 @@ ram = widget.Memory(
battery = widget.Battery(
format="{char} {percent:2.0%} {hour:d}:{min:02d} ",
background=colors[8],
# low_background=colors[10],
low_background=colors[10],
charge_char = "󰂄",
discharge_char = "󰁼",
empty_char= "󱃍",
@ -321,6 +318,7 @@ floating_layout = layout.Floating(
Match(wm_class="ssh-askpass"), # ssh-askpass
Match(title="branchdialog"), # gitk
Match(title="pinentry"), # GPG key password entry
Match(wm_class="float"), #onclick widget
]
)