Commit 6ce4aca3e2c7cc8ef7a0f3656561baa586946020 Parent: e6276760bbd4342846bc5ef929430d2f34f57b31 Author: mcol <mcol@posteo.net> Date: 2021-06-15 23:13:32 +0100 Committer: mcol <mcol@posteo.net> Committed: 2021-06-15 23:13:32 +0100 Configure wob in config
startup.sh Modified
@@ -7,7 +7,12 @@ FIFO=/tmp/wob-$WAYLAND_DISPLAY test -e $FIFO || mkfifo $FIFO -tail -f $FIFO | wob -a left -a right -a bottom & + +tail -f $FIFO | wob -a bottom \ + -M ${WOB_MARGIN:-0} -H ${WOB_HEIGHT:-32} -W ${WOB_WIDTH:-400} \ + -o ${WOB_OFFSET:-0} -b ${WOB_BORDER:-0} -p ${WOB_PADDING:-0} \ + --background-color ${WOB_BACKGROUND:-#ff000000} \ + --bar-color ${WOB_BAR:-#00ffffff} & # Things after this are only run on a TTY
config.py Modified
@@ -180,8 +180,9 @@ ## Layouts border_focus = [colours[13], colours[5]] #border_focus = colours[13] -border_normal = colours[8] -border_width = 4 +border_normal = background +#border_normal = colours[8] +border_width = 6 #import qtools.borders #qtools.borders.enable('cde') @@ -556,14 +557,19 @@ @hook.subscribe.startup_once async def _(): env = os.environ.copy() - env["WOB_DEFAULT_HEIGHT"] = str(32) - env["WOB_DEFAULT_MARGIN"] = str(0) + env["WOB_HEIGHT"] = "32" + env["WOB_WIDTH"] = "1920" + env["WOB_MARGIN"] = "0" + env["WOB_OFFSET"] = "0" + env["WOB_BORDER"] = "0" + env["WOB_PADDING"] = "0" + env["WOB_BACKGROUND"] = "#00000000" + env["WOB_BAR"] = "#ff" + foreground[1:] subprocess.Popen(f"{HOME}/.config/qtile/startup.sh", shell=True, env=env) if xephyr: - @hook.subscribe.startup_once - async def _(): - qtile.cmd_reconfigure_screens() + # To adapt to whatever window size it was given + hook.subscribe.startup_once(qtile.cmd_reconfigure_screens) ## General settings