mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 17:01:29 +00:00
Get rid of main taskbar and move time/date to window title bar.
parent
e1b043141c
commit
ccc5f20402
28
Tricks.md
28
Tricks.md
|
@ -225,3 +225,31 @@ And remember to restart the udevmon service:
|
||||||
sudo systemctl restart udevmon
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue