From 3038bf2052ea8610cb669943878139445e84c6ef Mon Sep 17 00:00:00 2001 From: Yannick Date: Fri, 15 Aug 2025 23:21:38 +0200 Subject: [PATCH] add keybinds for rotation --- .config/hypr/hyprland.conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 85ed193..70485d3 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -15,7 +15,7 @@ ################ # See https://wiki.hyprland.org/Configuring/Monitors/ -monitor=,highres@highrr,auto,auto, transform, 0 +monitor=,highres@highrr,auto,auto,transform, 0 # Scalling xwayland { @@ -250,7 +250,7 @@ bindl =, switch:off:[Lid Switch], exec, hyprctl sleep binde = $mainMod, D, exec, makoctl dismiss bind = $mainMod SHIFT, D, exec, makoctl dismiss -a -#Move focus with mainMod + vim keys +# Move focus with mainMod + vim keys bind = $mainMod, H, movefocus, l bind = $mainMod, J, movefocus, d bind = $mainMod, K, movefocus, u @@ -274,6 +274,12 @@ binde = $mainMod SHIFT, I, resizeactive, 0 50 binde = $mainMod SHIFT, O, resizeactive, 0 -50 binde = $mainMod SHIFT, P, resizeactive, 50 0 +# Rotate screen with mainMod + Shift + r + 1-4 +bind = CONTROL_ALT, 1, exec, hyprctl keyword input:touchdevice:transform 0 ; hyprctl keyword input:tablet:transform 0 ; hyprctl keyword monitor ",highres@highrr, auto, auto, transform, 0" +bind = CONTROL_ALT, 2, exec, hyprctl keyword input:touchdevice:transform 1 ; hyprctl keyword input:tablet:transform 1 ; hyprctl keyword monitor ",highres@highrr, auto, auto, transform, 1" +bind = CONTROL_ALT, 3, exec, hyprctl keyword input:touchdevice:transform 2 ; hyprctl keyword input:tablet:transform 2 ; hyprctl keyword monitor ",highres@highrr, auto, auto, transform, 2" +bind = CONTROL_ALT, 4, exec, hyprctl keyword input:touchdevice:transform 3 ; hyprctl keyword input:tablet:transform 3 ; hyprctl keyword monitor ",highres@highrr, auto, auto, transform, 3" + # Switch workspaces with mainMod + [0-9]