Skip to content

Commit 2bcd7fc

Browse files
committed
added click to headset_ctl block
1 parent f65316b commit 2bcd7fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

i3blocks/headset_ctl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ green_cutoff=50
77
yellow_cutoff=20
88
red_cutoff=0
99

10+
case $BLOCK_BUTTON in
11+
1) dunstify -i audio-headset -u low -a "Headset battery" "${battery_value}%"
12+
esac
13+
1014
span_color=""
1115

1216
if [ "$battery_value" -ge "$green_cutoff" ]; then

0 commit comments

Comments
 (0)