summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.config/sway/binds.conf8
1 files changed, 7 insertions, 1 deletions
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
+}
 
 # }}}