From 662576732f9489ee89c65cf4fdf6c4bbe6fd8e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 10 May 2020 23:21:33 -0300 Subject: [PATCH] wayland/mouse shortcuts: add docs, fix exit prompt --- wayland/.config/sway/config | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wayland/.config/sway/config b/wayland/.config/sway/config index 70ac976..04a0223 100644 --- a/wayland/.config/sway/config +++ b/wayland/.config/sway/config @@ -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.