commit dbcc6b1810d33eaeb82a4a5e09907cf6e75f132e
parent e4041d33b5ea9273bf99c089ad42c515615fd535
Author: jacob@thinkpad <jacobouno@protonmail.com>
Date: Tue, 19 May 2020 21:03:09 -0700
update OpenBSD volume controls, formatting, etc
now have two seperate volume and backlight controls, hardware and
regular.
Diffstat:
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc
@@ -33,7 +33,7 @@ super + d
# newsboat
super + n
- "$TERMINAL" -e newsboat || notify-send 'newsboat already running or an error occured'
+ "$TERMINAL" -e newsboat || notify-send 'newsboat already running or an error occured'
# bookmarks
shift + super + {m,alt + m, n}
@@ -51,12 +51,12 @@ alt + p
### basic utilities
-# brightness controls
+# hardware brightness controls
XF86MonBrightness{Up,Down}
xbl {--up,--down}
# brightness controls
-{Home,End}
+super + alt + {e,r}
xbl {--up,--down}
# suspend screen
@@ -73,7 +73,7 @@ alt + F{1,2,3,4,5,6}
# launch wallpaper selector
Menu
- dmenu-do-dir "$WALLPAPERS" "sxiv -rtb ./"
+ dmenu-do-dir "$WALLPAPERS" "sxiv -rtb ./"
# look at screenshots
super + alt + Print
@@ -93,11 +93,15 @@ XF86Audio{Play,Stop}
# seek (mpd)
shift + XF86Audio{Next,Prev}
- mpc seek {+,-}10
+ mpc seek {+,-}10
-# volume keys
+# hardware volume controls
XF86Audio{Raise,Lower}Volume
- notify-send $(mixerctl outputs.master | cut -d"," -f2) || volume {--inc,--dec} 5
+ notify-send $(sndioctl output.level={+,-}0.05 | cut -d"=" -f2) || volume {--inc,--dec} 5
+
+# volume controls
+super + alt + {i,o}
+ notify-send $(sndioctl output.level={+,-}0.05 | cut -d"=" -f2) || volume {--inc,--dec} 5
# mute mic and speakers
XF86Audio{_,Mic}Mute