diff options
author | eug-vs <eug-vs@keemail.me> | 2021-01-06 21:28:14 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-01-06 21:28:14 +0300 |
commit | c3b78d929f3c0bf58890904ea3c07b470057b35f (patch) | |
tree | 4105be885046e820c3c274ccd614d30688fe56e9 | |
parent | 441dfa5442fe7a936eb0b865a8e6119932796180 (diff) | |
download | dotfiles-c3b78d929f3c0bf58890904ea3c07b470057b35f.tar.gz |
feat: setup multimedia playback keys
-rw-r--r-- | .config/i3/config | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/i3/config b/.config/i3/config index 1ad4c61..66604ff 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -20,6 +20,12 @@ bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume @DEFAUL bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute @DEFAULT_SINK@ toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else $show_volume; fi" bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle +# Use playerctl to respond to multimedia keys +bindsym XF86AudioPlay exec playerctl play-pause +bindsym XF86AudioPrev exec playerctl previous +bindsym XF86AudioNext exec playerctl next + + # Screenshot via ImageMagick bindsym --release Shift+Print exec --no-startup-id screenshot.sh bindsym --release Print exec --no-startup-id screenshot.sh -window root |