summaryrefslogtreecommitdiff
path: root/.config/bspwm/panel
blob: 332be933efe6ff1afcdbf3b79480868e25a3c0a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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