scripts

scripts to make my pc work
Index Commits Files Refs
statusbar/buttons/sb-volume-button (678B)
   1 #!/bin/bash
   2 
   3 send_notification() {
   4     dunstify -r 199 -h "int:value:$1" "$2 Volume ($1%)" -t 2000;
   5     # dunstify "Signal $1 received"
   6 }
   7 
   8 case "$1" in
   9     1) pactl set-sink-mute @DEFAULT_SINK@ toggle; pkill -RTMIN+1 dwmblocks;;
  10     # 2) pactl set-sink-volume @DEFAULT_SINK@ +1; pkill -RTMIN+1 dwmblocks;;
  11     3) pavucontrol -t 3;;
  12     # 4) pactlsetvolume -i 1;;
  13     # 5) pactlsetvolume -d 1;;
  14     # 4) if [ "$curr" -lt "100" ]; then pactl set-sink-volume @DEFAULT_SINK@ +1%; pkill -RTMIN+1 dwmblocks fi;;
  15     # 5) pactl set-sink-volume @DEFAULT_SINK@ -1%; pkill -RTMIN+1 dwmblocks;;
  16     4) pamixer -i 1 & kill -35 $(pidof dwmblocks); exit;;
  17     5) pamixer -d 1 & kill -35 $(pidof dwmblocks); exit;;
  18 esac