From debbe40d2c60d4eb8c407d16075838a84edf91d6 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 11 Nov 2018 21:27:04 -0500 Subject: right click on modules shows module info --- .scripts/statusbar/i3battery | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.scripts/statusbar/i3battery') 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 "%s %s" "$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 "🔋 Battery module: +🔋: discharging +♻: stagnant charge +🔌: charging +⚡: charged +- Text color reflects charge left" ;; +esac + -- cgit v1.3.1