Add media keys
Control mpc from keyboard.
This commit is contained in:
parent
dbf6b1d99e
commit
6803914a02
1 changed files with 5 additions and 1 deletions
|
@ -152,12 +152,16 @@ bindsym $mod+Control+v exec "ibus engine Unikey"
|
||||||
# exit i3 (logs you out of your X session)
|
# exit i3 (logs you out of your X session)
|
||||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||||
|
|
||||||
# volume keys: mute, lower highter
|
# media keys
|
||||||
set $refresh_i3status killall -SIGUSR1 i3status-rs
|
set $refresh_i3status killall -SIGUSR1 i3status-rs
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
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 XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $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 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
|
||||||
|
|
||||||
# open login screen on another vt (virtual terminal)
|
# open login screen on another vt (virtual terminal)
|
||||||
bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter"
|
bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter"
|
||||||
|
|
Loading…
Reference in a new issue