From f09ba7e251b505166baa1af2ab530b8ee241bd54 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 28 Sep 2022 19:25:46 +0200 Subject: sway: add rotated mode for reading --- .config/sway/binds.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.config/sway/binds.conf') diff --git a/.config/sway/binds.conf b/.config/sway/binds.conf index cc1fd0c..f895f9b 100644 --- a/.config/sway/binds.conf +++ b/.config/sway/binds.conf @@ -38,7 +38,13 @@ bindsym $mod+Shift+e exit bindsym $mod+Shift+backspace exec lock bindsym $mod+Shift+b border toggle -bindsym $mod+Shift+r output - transform 90 anticlockwise + +# rotate the screen 90 degress to read books/manga +bindsym $mod+Shift+r mode "read"; output - transform 90 clockwise +mode "read" { + bindsym Escape mode "default"; output - transform 90 anticlockwise + bindsym Return mode "default"; output - transform 90 anticlockwise +} # }}} -- cgit 1.4.1