From def968aefd19bbc8619481d1eabc6f6f9d480e6c Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 12 Sep 2020 17:53:46 +0200 Subject: [PATCH] sxhkd: Switch to rofi-pass and pavolume invocation Switched sxhkd shortcut from rofi-gopass to new rofi-pass implementation. Additionally switched from pulsemixer to pavolume for media key volume control. Pulsemixer works well as a tui application, but its cli implementation is unbearably slow (on my setup at the very least). After pressing the volume up/down/mute key it could take up to 3 seconds to take effect. With pavolume this change happens almost instantaneously, and it displays a libnotify message on top (can be disabled). --- bootstrap/packages.txt | 1 + sxhkd/.config/sxhkd/sxhkdrc | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bootstrap/packages.txt b/bootstrap/packages.txt index 4a3fa30..c956948 100644 --- a/bootstrap/packages.txt +++ b/bootstrap/packages.txt @@ -76,6 +76,7 @@ ntp os-prober pacman-contrib pandoc-citeproc +pavolume pdfjs pia-tools picom diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 2e7208f..c6afd2b 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -18,9 +18,9 @@ super + F8 XF86MonBrightness{Up,Down} xbacklight {-inc,-dec} 10 XF86AudioMute - pulsemixer --toggle-mute + pavolume mutetoggle XF86Audio{LowerVolume,RaiseVolume} - pulsemixer --change-volume {-5,+5} + pavolume {voldown, volup} # Open terminal emulator (the variable gets set in sh module basic env vars) super + Return @@ -40,7 +40,7 @@ super + { r, shift + r } # open gopass frontend menu super + p - rofi-gopass -theme themes/dropdown + rofi-pass -theme themes/dropdown # open surfraw rofi frontend super + q