summaryrefslogtreecommitdiff
path: root/cfg/i3
diff options
context:
space:
mode:
Diffstat (limited to 'cfg/i3')
-rw-r--r--cfg/i3/kurobar.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/cfg/i3/kurobar.sh b/cfg/i3/kurobar.sh
index ec58fa2..53ac757 100644
--- a/cfg/i3/kurobar.sh
+++ b/cfg/i3/kurobar.sh
@@ -1,6 +1,9 @@
#!/bin/bash
while true; do
+ # --- volume percentage ---
+ volume=$(pamixer --get-volume)
+
# --- battery percentage ---
if [ -d /sys/class/power_supply/BAT0 ]; then
bat=$(cat /sys/class/power_supply/BAT0/capacity)
@@ -20,7 +23,7 @@ while true; do
dt=$(date '+%Y-%m-%d %H:%M:%S')
# --- print bar line ---
- echo "$bat% | $mem_used/$mem_total GB | $bright | $dt"
+ echo "V.$volume% | B.$bat% | Mu.$mem_used/Mt.$mem_total GB | L.$bright | $dt"
- sleep 0.1
+ sleep 0.01
done