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 # TODO
- [ ] more widgets - [ ] more widgets
- [ ] popup - [ ] popup
- [ ] notifications - [ ] notifications - dunst
- [ ] borders and separation of colors - [ ] borders and separation of colors
# Bugs # Bugs
- [ ] Deflout not working
- [ ] add jq as dependencies

View File

@ -15,8 +15,8 @@ alt = "mod1"
home = os.path.expanduser('~') home = os.path.expanduser('~')
keys = [ keys = [
# A list of available commands that can be bound to keys can be found #Kills focused window
# at https://docs.qtile.org/en/latest/manual/config/lazy.html Key([mod], "q", lazy.window.kill(), desc="Kill focused window"),
# Switch between windows # Switch between windows
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"), Key([mod], "h", lazy.layout.left(), desc="Move focus to left"),
Key([mod], "l", lazy.layout.right(), desc="Move focus to right"), Key([mod], "l", lazy.layout.right(), desc="Move focus to right"),
@ -46,7 +46,6 @@ keys = [
lazy.layout.toggle_split(), lazy.layout.toggle_split(),
desc="Toggle between split and unsplit sides of stack", 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 # Toggle between different layouts as defined below
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
Key([mod], "f", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"), 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"], "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"), 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"), Key([mod], "z", lazy.widget["keyboardlayout"].next_keyboard(), desc="Next keyboard layout"),
] ]
@ -116,10 +115,7 @@ for i in groups:
) )
layouts = [ layouts = [
layout.Columns( layout.Columns(),
border_focus_stack=["#d75f5f", "#8f3d3d"],
border_width=4
),
# layout.Max(), # layout.Max(),
# layout.Stack(num_stacks=2), # layout.Stack(num_stacks=2),
# layout.Bsp(), # layout.Bsp(),
@ -189,7 +185,7 @@ icon = widget.TextBox(
group_box = widget.GroupBox( group_box = widget.GroupBox(
highlight_method='line', highlight_method='line',
highlight_color= colors[1], highlight_color= colors[11],
background = colors[2], background = colors[2],
other_current_screen_border = colors[6], other_current_screen_border = colors[6],
other_screen_border = colors[6], other_screen_border = colors[6],
@ -204,14 +200,15 @@ spacer = widget.Spacer(
kb_layout = widget.KeyboardLayout( kb_layout = widget.KeyboardLayout(
configured_keyboards=['us', 'cz qwerty'], configured_keyboards=['us', 'cz qwerty'],
display_map={'us':'US', 'cz qwerty':'CZ'}, display_map={'us':'US', 'cz qwerty':'CZ'},
fmt="{}", fmt="{} ",
background=colors[4], background=colors[4],
**rounded_right, **rounded_right,
) )
wifi = widget.Wlan( wifi = widget.Wlan(
#!TODO configure format = "󰖩 {essid} {percent:2.0%} ",
interface = "wlp2s0", interface = "wlp2s0",
mouse_callbacks={"Button1":lazy.spawn("alacritty --class float -e nmcli device wifi")},
background=colors[2], background=colors[2],
**rounded_right, **rounded_right,
) )
@ -225,8 +222,8 @@ vpn = widget.GenPollCommand(
) )
ram = widget.Memory( ram = widget.Memory(
format = "{MemFree:.0f} 󰓡 {SwapFree:.0f}", 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], background=colors[6],
mesure_mem="M", mesure_mem="M",
mesure_swap="M", mesure_swap="M",
@ -234,9 +231,9 @@ ram = widget.Memory(
) )
battery = widget.Battery( battery = widget.Battery(
format="{char} {percent:2.0%} {hour:d}:{min:02d}", format="{char} {percent:2.0%} {hour:d}:{min:02d} ",
background=colors[8], background=colors[8],
# low_background=colors[10], low_background=colors[10],
charge_char = "󰂄", charge_char = "󰂄",
discharge_char = "󰁼", discharge_char = "󰁼",
empty_char= "󱃍", empty_char= "󱃍",
@ -244,7 +241,7 @@ battery = widget.Battery(
) )
clock = widget.Clock( clock = widget.Clock(
format="%y-%m-%d %a %H:%M", format="%y-%m-%d %a %H:%M ",
background=colors[0], background=colors[0],
padding = 5, padding = 5,
) )
@ -320,7 +317,8 @@ floating_layout = layout.Floating(
Match(wm_class="maketag"), # gitk Match(wm_class="maketag"), # gitk
Match(wm_class="ssh-askpass"), # ssh-askpass Match(wm_class="ssh-askpass"), # ssh-askpass
Match(title="branchdialog"), # gitk Match(title="branchdialog"), # gitk
Match(title="pinentry"), # GPG key password entry Match(title="pinentry"), # GPG key password entry
Match(wm_class="float"), #onclick widget
] ]
) )