scripts

scripts to make my pc work
Index Commits Files Refs
pactlraisevolume (375B)
   1 #!/bin/bash
   2 
   3 amount_to_increase=$1
   4 
   5 current_volume=$(pamixer --get-volume)
   6 max_volume=$((100 - $amount_to_increase))
   7 
   8 (($current_volume<=$max_volume)) && $(pactl set-sink-volume @DEFAULT_SINK@ +$amount_to_increase%)
   9 
  10 current_volume=$(pamixer --get-volume)
  11 notify-send -h int:value:$current_volume "Volume" -h string:bgcolor:#111111 -h string:fgcolor:#ffffff -i 🔊 -t 1500;