diff options
| author | Robert Günzler <r@gnzler.io> | 2022-09-28 19:25:46 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2022-09-28 19:25:46 +0200 |
| commit | f09ba7e251b505166baa1af2ab530b8ee241bd54 (patch) | |
| tree | 80de8bc237b6fa023702f8107d498280c2aa16da /.config/sway/binds.conf | |
| parent | 69d0c2f8ac0351c2c683edbbe6f174e1cfef1418 (diff) | |
sway: add rotated mode for reading
Diffstat (limited to '.config/sway/binds.conf')
| -rw-r--r-- | .config/sway/binds.conf | 8 |
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 +} # }}} |