summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/i3/config1
-rwxr-xr-x.local/bin/rofi-pamixer4
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"