summaryrefslogtreecommitdiffstats
path: root/.scripts/statusbar/i3battery
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-11-11 21:27:04 -0500
committerLuke Smith <luke@lukesmith.xyz>2018-11-11 21:27:04 -0500
commitdebbe40d2c60d4eb8c407d16075838a84edf91d6 (patch)
tree33f00ed63869a7c3d45a31672a7e5c1623b5ce3d /.scripts/statusbar/i3battery
parent9fd0e6575439747e179be8218b0f372fedf69dc4 (diff)
downloadeibhear-debbe40d2c60d4eb8c407d16075838a84edf91d6.tar.gz
eibhear-debbe40d2c60d4eb8c407d16075838a84edf91d6.tar.zst
eibhear-debbe40d2c60d4eb8c407d16075838a84edf91d6.zip
right click on modules shows module info
Diffstat (limited to '.scripts/statusbar/i3battery')
-rwxr-xr-x.scripts/statusbar/i3battery10
1 files changed, 10 insertions, 0 deletions
diff --git a/.scripts/statusbar/i3battery b/.scripts/statusbar/i3battery
index 6f045fc..2309db1 100755
--- a/.scripts/statusbar/i3battery
+++ b/.scripts/statusbar/i3battery
@@ -20,3 +20,13 @@ fi
[ "$status" = "Charging" ] && color="#FFF"
printf "<span color='%s'>%s %s</span>" "$color" "$(echo "$status" | sed -e "s/,//g;s/Discharging/🔋/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$(echo "$capacity" | sed -e 's/$/%/')"
+
+case $BLOCK_BUTTON in
+ 3) pgrep -x dunst >/dev/null && notify-send "<b>🔋 Battery module:</b>
+🔋: discharging
+♻: stagnant charge
+🔌: charging
+⚡: charged
+- Text color reflects charge left" ;;
+esac
+