From ccc5f20402403a2c98049e14c2001b2f96a1dc0f Mon Sep 17 00:00:00 2001 From: nontntnt <85178643+nontntnt@users.noreply.github.com> Date: Thu, 12 Aug 2021 16:05:40 +0000 Subject: [PATCH] Get rid of main taskbar and move time/date to window title bar. --- Tricks.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Tricks.md b/Tricks.md index 115d677..c5703ba 100644 --- a/Tricks.md +++ b/Tricks.md @@ -225,3 +225,31 @@ And remember to restart the udevmon service: sudo systemctl restart udevmon ``` +# Get rid of main taskbar and move time/date to window title bar. + +For those of us who want every pixel of real state! + +I have marked the main changes with **bold**. + +# +# Status Bar: +# +# Read `man 5 sway-bar` for more information about this section. +bar { + position top + # This makes the tabs come at the same height as the bar. We then make the bar transparent +and we have them both "fused" + **mode overlay** + # When the status_command prints a new line to stdout, swaybar updates. + # The default just shows the current date and time. + status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done + # Workspace buttons don't look good when the bar is transparent + **workspace_buttons no** + colors { + statusline #ffffff + #background #323232 + # Transparent bar + **background #ffffff10** + inactive_workspace #32323200 #32323200 #5c5c5c + } +}