diff options
author | Aki <please@ignore.pl> | 2024-02-17 01:42:46 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-02-17 01:42:46 +0100 |
commit | 85edc44c27e461b699660630e3fdd7be19e34a7c (patch) | |
tree | f2d7fd1925b5605bfa9e668fd191e204dc5a27b2 /.config/bspwm/panel | |
parent | 7034190f5a29147e2f8831fb0e2423cc640c417c (diff) | |
download | dots-85edc44c27e461b699660630e3fdd7be19e34a7c.zip dots-85edc44c27e461b699660630e3fdd7be19e34a7c.tar.gz dots-85edc44c27e461b699660630e3fdd7be19e34a7c.tar.bz2 |
Added bspwm configs from yatsugatake
Diffstat (limited to '.config/bspwm/panel')
-rwxr-xr-x | .config/bspwm/panel | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/bspwm/panel b/.config/bspwm/panel new file mode 100755 index 0000000..332be93 --- /dev/null +++ b/.config/bspwm/panel @@ -0,0 +1,20 @@ +#!/bin/sh +while true +do + desktops="%{l}" + focused=$(bspc query -D -d focused --names) + for d in $(bspc query -D --names) + do + desktop="%{O4}$d%{O4}" + if [ $focused -eq $d ] + then + desktop="%{F#ddbdae93}%{R}$desktop%{R}${F-}" + else + desktop="%{A:bspc desktop $d -f:}$desktop%{A}" + fi + desktops="$desktops$desktop" + done + dateandtime="$(LC_TIME=pl_PL.UTF-8 date +'%%{c}%A, %d %B, %H:%M')" + echo "$desktops$dateandtime" + sleep 0.1 +done | lemonbar -f "sans:size=10" -F "#d5c4a1" -B "#dd1d2021" -p | sh |