media: Extract media key bindings
Extract media key bindings into own file.
This commit is contained in:
parent
60760861c2
commit
e7b0476c36
3 changed files with 13 additions and 13 deletions
|
@ -59,19 +59,6 @@ bindsym $mod+a focus parent
|
|||
# focus the child container
|
||||
bindsym $mod+q focus child
|
||||
|
||||
# media keys
|
||||
set $refresh_i3status killall -SIGUSR1 i3status-rs
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||
bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status
|
||||
bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioNext exec --no-startup-id mpc next
|
||||
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
|
||||
bindsym XF86AudioPrev exec --no-startup-id mpc prev
|
||||
bindsym XF86AudioStop exec --no-startup-id mpc stop
|
||||
|
||||
# exit sway
|
||||
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
|
||||
|
||||
|
|
12
.config/sway/config.d/media
Normal file
12
.config/sway/config.d/media
Normal file
|
@ -0,0 +1,12 @@
|
|||
# media keys
|
||||
set $refresh_i3status killall -SIGUSR1 i3status-rs
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||
bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status
|
||||
bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioNext exec --no-startup-id mpc next
|
||||
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
|
||||
bindsym XF86AudioPrev exec --no-startup-id mpc prev
|
||||
bindsym XF86AudioStop exec --no-startup-id mpc stop
|
|
@ -4,6 +4,7 @@
|
|||
!/.config/i3status-rust/secondary.toml
|
||||
!/.config/sway/config
|
||||
!/.config/sway/config.d/dunst
|
||||
!/.config/sway/config.d/media
|
||||
!/.gitignore.d/sway
|
||||
!/.local/bin/fuzzy-i3lock
|
||||
!/.local/bin/i3-run
|
||||
|
|
Loading…
Reference in a new issue