summaryrefslogtreecommitdiff
path: root/scripts/status.sh
diff options
context:
space:
mode:
authorbacalhau <bacalhau@based.pt>2025-06-08 15:55:29 +0100
committerbacalhau <bacalhau@based.pt>2025-06-08 15:55:29 +0100
commita3f76f49addeecb6138ee2ae1d089c60d2df04a7 (patch)
tree9b5ea1d3ef854d19f8239967c21d728edb27a397 /scripts/status.sh
parent3ab7348ee95f2918cb9ae299290a812252663923 (diff)
added files (for eel)HEADmaster
Diffstat (limited to 'scripts/status.sh')
-rwxr-xr-xscripts/status.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/status.sh b/scripts/status.sh
new file mode 100755
index 0000000..c9a7e9a
--- /dev/null
+++ b/scripts/status.sh
@@ -0,0 +1,9 @@
+while true; do
+
+ battery="$(cat /sys/class/power_supply/BAT1/capacity)"
+ volume="$(amixer sget Master | awk -F"[][]" '/Left:/ { print $2 }')"
+ song="$(cmus-remote -Q | grep 'tag title' | cut -d ' ' -f 3-)"
+
+ xsetroot -name "  $battery | ♫ $song |  $volume |  $(date +%d) |  $(date +%R)"
+ sleep 0.1
+done