summaryrefslogtreecommitdiff
path: root/backlight
blob: aba0945cbdef984e216831811fde37e3143f076c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

case $BLOCK_BUTTON in
  1)
    pgrep -x pipewire >/dev/null && MIXER="pulsemixer" || \
      pgrep -x pulseaudio >/dev/null && MIXER="pulsemixer" || \
      MIXER="alsamixer"
    setsid -f $TERMINAL -e $MIXER
    ;;
  2) notify-send "Volume module" "\- Shows volume, X if muted.
- Middle click to show this message.
- Right click to mute.
- Scroll to change." ;;
  3) volsv -t ;;
  4) volsv -i ;;
  5) volsv -d ;;
  6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
printf "[%3.0f%%]" "$(bl -g)"