summaryrefslogtreecommitdiffstats
path: root/.local/bin/volume-info
blob: b9a848895845b767b232daec2aa1903f9b5b8bbd (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh
cur_vol=$(pamixer --get-volume)

if [ $(pamixer --get-mute) = true ]; then
  printf 'mt \n' "$cur_vol"
else
  printf '%02d \n' "$cur_vol"
fi