repos/scripts

Simple scripts that I made for my personal computer to map keys, make bluetooth work, brightness keys, etc.
Commits Files Refs README LICENSE
statusbar/sb-volume (17 lines)
   1 #!/bin/sh
   2 #
   3 vol="$(pamixer --get-volume)"
   4 
   5 [ $(pamixer --get-mute) = true ] && printf "🔇%3d%s" $vol "%" && exit
   6 
   7 if [ "$vol" -gt "49" ]; then
   8     icon="🔊"
   9 elif [ "$vol" -eq "0" ]; then
  10     icon="🔇"
  11 elif [ "$vol" -lt "25" ]; then
  12     icon="🔈"
  13 else
  14     icon="🔉"
  15 fi
  16 
  17 printf "%s%3d%s" "$icon" "$vol" "%"