wayland/mouse shortcuts: add docs, fix exit prompt

This commit is contained in:
Érico Rolim 2020-05-10 23:21:33 -03:00
parent 18d3168988
commit 662576732f
1 changed files with 7 additions and 1 deletions

View File

@ -244,10 +244,16 @@ bindsym $mod+Shift+o move container to workspace $wso
bindsym $mod+Shift+p move container to workspace $wsp
## Mouse bindings
# Reference for x11 mouse button codes:
# http://xahlee.info/linux/linux_x11_mouse_button_number.html
# Modifier is the forward button
set $mouse button9
# launcher with the left mouse button
bindsym --whole-window $mouse+button1 exec launcher
# switch to workspace 10 with right mouse button
bindsym --whole-window $mouse+button3 workspace $ws10
bindsym --whole-window $mouse+button8 exec $exit_command
# open exit dialog with the backward button
bindsym --whole-window $mouse+button8 exec $sway_exit_prompt
## Scratchpad
# Sway has a "scratchpad", which is a bag of holding for windows.