blob: d9e92ca5fef02797192ea430f25d8e42f5355e33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
vol(){
vol=$(pulsemixer --get-volume | awk '{print $1}')
echo -e "\x01vol \x02$vol%"
}
bat() {
power=$(cat /sys/class/power_supply/BAT0/capacity)
echo -e "\x01bat \x02$power%"
}
dte() {
dte=$(date +"%A, %B %d")
echo -e "\x01date \x02$dte"
}
tie() {
tme=$(date +"%I:%M %p")
echo -e "\x01time \x02$tme"
}
while true; do
xsetroot -name "$(vol) $(bat) $(tie) $(dte)"
sleep 3
done
|