hidden swaybar
Sway bar is a wayland compositor and it has a built-in status called swaybar. The swaybar is very minimal only with showing sway workspaces and a static status line. But it is very powerful if it is combined with i3blocks. However, it is worth to use swaybar as hidden state because of being resource efficiency. Using swaybar as hidden state is simple. If the MOD is pressed, the bar appears suddenly while it is hidden otherwise. The configuration sample in ~/.config/sway/config is below.
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
mode hide
gaps 90 90
# 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 +'%F %A %R - %I:%M %p'; do sleep 3; done
status_command while battdatetime; do sleep 180; done
font pango:monospace 21
workspace_min_width 90
colors {
statusline #FFFFFF
background #32323290
inactive_workspace #323232 #323232 #999999
# focused_workspace #323232 #33004D #FFFFFF
focused_workspace #323232 #0000FF #FFFFFF
}
}
Comments
Post a Comment