right click on modules shows module info

This commit is contained in:
Luke Smith
2018-11-11 21:27:04 -05:00
parent 9fd0e65754
commit debbe40d2c
6 changed files with 46 additions and 12 deletions

View File

@@ -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