mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-13 20:28:35 +10:00
It's time to move to Qtile on WAYLAND!
This commit is contained in:
@@ -510,7 +510,8 @@ def init_widgets_list():
|
||||
## Uncomment for time only
|
||||
format = "%I:%M %p",
|
||||
),
|
||||
widget.Systray(padding = 6),
|
||||
# DISABLE Systray if using Wayland!!!
|
||||
# widget.Systray(padding = 6),
|
||||
widget.Spacer(length = 8),
|
||||
|
||||
]
|
||||
@@ -527,24 +528,24 @@ def init_widgets_screen1():
|
||||
return widgets_screen1
|
||||
|
||||
# All other monitors' bars will display everything but widgets 22 (systray) and 23 (spacer).
|
||||
def init_widgets_screen2():
|
||||
widgets_screen2 = init_widgets_list()
|
||||
del widgets_screen2[16:17]
|
||||
return widgets_screen2
|
||||
# def init_widgets_screen2():
|
||||
# widgets_screen2 = init_widgets_list()
|
||||
# del widgets_screen2[16:17]
|
||||
# return widgets_screen2
|
||||
|
||||
# For adding transparency to your bar, add (background="#00000000") to the "Screen" line(s)
|
||||
# For ex: Screen(top=bar.Bar(widgets=init_widgets_screen2(), background="#00000000", size=24)),
|
||||
|
||||
def init_screens():
|
||||
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=30)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30))]
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=30)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=30))]
|
||||
|
||||
if __name__ in ["config", "__main__"]:
|
||||
screens = init_screens()
|
||||
widgets_list = init_widgets_list()
|
||||
widgets_screen1 = init_widgets_screen1()
|
||||
widgets_screen2 = init_widgets_screen2()
|
||||
# widgets_screen2 = init_widgets_screen2()
|
||||
|
||||
#+end_src
|
||||
|
||||
|
||||
14
.config/qtile/autostart-wayland
Executable file
14
.config/qtile/autostart-wayland
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
COLORSCHEME=doom-one
|
||||
|
||||
### AUTOSTART PROGRAMS ###
|
||||
kanshi &
|
||||
# dunst -conf "$HOME"/.config/dunst/"$COLORSCHEME" &
|
||||
# nm-applet &
|
||||
# nextcloud --background &
|
||||
# flameshot &
|
||||
# systemctl --user start mpd &
|
||||
/usr/bin/emacs --daemon &
|
||||
waypaper --restore &
|
||||
conky -c "$HOME"/.config/conky/qtile/01/"$COLORSCHEME".conf &
|
||||
@@ -388,7 +388,8 @@ def init_widgets_list():
|
||||
## Uncomment for time only
|
||||
format = "%I:%M %p",
|
||||
),
|
||||
widget.Systray(padding = 6),
|
||||
# DISABLE Systray if using Wayland!!!
|
||||
# widget.Systray(padding = 6),
|
||||
widget.Spacer(length = 8),
|
||||
|
||||
]
|
||||
@@ -399,24 +400,24 @@ def init_widgets_screen1():
|
||||
return widgets_screen1
|
||||
|
||||
# All other monitors' bars will display everything but widgets 22 (systray) and 23 (spacer).
|
||||
def init_widgets_screen2():
|
||||
widgets_screen2 = init_widgets_list()
|
||||
del widgets_screen2[16:17]
|
||||
return widgets_screen2
|
||||
# def init_widgets_screen2():
|
||||
# widgets_screen2 = init_widgets_list()
|
||||
# del widgets_screen2[16:17]
|
||||
# return widgets_screen2
|
||||
|
||||
# For adding transparency to your bar, add (background="#00000000") to the "Screen" line(s)
|
||||
# For ex: Screen(top=bar.Bar(widgets=init_widgets_screen2(), background="#00000000", size=24)),
|
||||
|
||||
def init_screens():
|
||||
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=30)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), margin=[8, 12, 0, 12], size=30))]
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=30)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen1(), margin=[8, 12, 0, 12], size=30))]
|
||||
|
||||
if __name__ in ["config", "__main__"]:
|
||||
screens = init_screens()
|
||||
widgets_list = init_widgets_list()
|
||||
widgets_screen1 = init_widgets_screen1()
|
||||
widgets_screen2 = init_widgets_screen2()
|
||||
# widgets_screen2 = init_widgets_screen2()
|
||||
|
||||
def window_to_prev_group(qtile):
|
||||
if qtile.currentWindow is not None:
|
||||
@@ -503,7 +504,7 @@ wl_input_rules = None
|
||||
@hook.subscribe.startup_once
|
||||
def start_once():
|
||||
home = os.path.expanduser('~')
|
||||
subprocess.call([home + '/.config/qtile/autostart.sh'])
|
||||
subprocess.call([home + '/.config/qtile/autostart-wayland'])
|
||||
|
||||
# XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this
|
||||
# string besides java UI toolkits; you can see several discussions on the
|
||||
|
||||
Reference in New Issue
Block a user