floating popups
This commit is contained in:
parent
52b81fb68a
commit
2e0074eea4
4
REDME.md
4
REDME.md
@ -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
|
|
||||||
|
|||||||
22
config.py
22
config.py
@ -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],
|
||||||
@ -210,8 +206,9 @@ kb_layout = widget.KeyboardLayout(
|
|||||||
)
|
)
|
||||||
|
|
||||||
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,
|
||||||
)
|
)
|
||||||
@ -226,7 +223,7 @@ 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",
|
||||||
@ -236,7 +233,7 @@ 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= "",
|
||||||
@ -321,6 +318,7 @@ floating_layout = layout.Floating(
|
|||||||
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
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user