blob: e8bc70295a8f7d5d6cc3fd554b1feffd597c16b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
while true; do
ram="ram $(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2}')"
cpu="load $(uptime -r | cut -d ' ' -f 4)"
clock="$(date +'%a %b %d, %r')"
volume="vol $(pactl get-sink-volume @DEFAULT_SINK@ | cut -d ' ' -f 6)"
media="$(playerctl metadata title) - $(playerctl metadata artist)"
if [ "$(playerctl status)" == "Paused" ]; then
media="no media"
fi
xsetroot -name " $media ~ $ram ~ $cpu ~ $volume ~ $clock "
sleep 1
done
|