Created
August 1, 2019 14:34
-
-
Save pedrocr/d37c42d08af14de505cddc7f949d69d7 to your computer and use it in GitHub Desktop.
bindsym clis that should be shared with the GUI programs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Brightness keys | |
bindsym XF86MonBrightnessUp exec brightnessctl s 5%+ | |
bindsym XF86MonBrightnessDown exec brightnessctl --min-value=17 s 5%- | |
# Audio Keys | |
set $sink $(pacmd list-sinks 2>&1 | grep "* index" | head -n 1 | cut -d " " -f 5) | |
bindsym XF86AudioLowerVolume exec pactl -- set-sink-mute $sink 0 && pactl -- set-sink-volume $sink -10% | |
bindsym XF86AudioRaiseVolume exec pactl -- set-sink-mute $sink 0 && pactl -- set-sink-volume $sink +10% | |
bindsym XF86AudioMute exec pactl -- set-sink-mute $sink toggle | |
set $source $(pacmd list-sources 2>&1 | grep "* index" | head -n 1 | cut -d " " -f 5) | |
bindsym XF86AudioMicMute exec pactl -- set-source-mute $source toggle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment