diff options
author | Amin Bandali <bandali@gnu.org> | 2021-05-18 18:52:50 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2021-05-18 18:52:50 -0400 |
commit | e064bdbfecc18b5cd11a913fec47a682dcb3b5f6 (patch) | |
tree | 66ad8a4c013292087c2b0d7a5cdacce836d08867 | |
parent | 0a3bd9dc1cdc233d702100b62639df78a4a65091 (diff) | |
download | configs-e064bdbfecc18b5cd11a913fec47a682dcb3b5f6.tar.gz configs-e064bdbfecc18b5cd11a913fec47a682dcb3b5f6.tar.xz configs-e064bdbfecc18b5cd11a913fec47a682dcb3b5f6.zip |
add rofi-pamixer convenience scripts for changing volume
Diffstat (limited to '')
-rw-r--r-- | .config/i3/config | 1 | ||||
-rwxr-xr-x | .local/bin/rofi-pamixer | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/.config/i3/config b/.config/i3/config index 89a7b96..cddbe29 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -38,6 +38,7 @@ bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness # volume +bindsym $mod+semicolon exec rofi-pamixer # rofi-based volume chooser bindsym XF86AudioRaiseVolume exec pamixer --allow-boost --increase 5 bindsym XF86AudioLowerVolume exec pamixer --allow-boost --decrease 5 bindsym XF86AudioMute exec pamixer --toggle-mute diff --git a/.local/bin/rofi-pamixer b/.local/bin/rofi-pamixer new file mode 100755 index 0000000..da06a6d --- /dev/null +++ b/.local/bin/rofi-pamixer @@ -0,0 +1,4 @@ +#!/bin/sh +cur=$(pamixer --get-volume) +val=$(rofi -dmenu -mesg "pamixer --get-volume $cur" -p "pamixer --set-volume " -l 0 -width 12) +[ -n "$val" ] && pamixer --set-volume "$val" |