gestures and special:magic borders

This commit is contained in:
Maximilian Wagner
2025-11-05 23:21:55 +01:00
parent 595214b01e
commit c580eb4282

View File

@@ -220,12 +220,17 @@ device {
accel_profile = flat accel_profile = flat
} }
# https://wiki.hyprland.org/Configuring/Variables/#gestures device {
gestures { name = logitech-usb-optical-mouse
workspace_swipe = true sensitivity = -0.4
workspace_swipe_fingers = 3 accel_profile = flat
} }
gesture = 3, horizontal, workspace
gesture = 3, vertical, fullscreen
gesture = 4, horizontal, resize
gesture = 4, vertical, special, magic
# Example per-device config # Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
device { device {
@@ -334,6 +339,9 @@ bind = $mainMod CTRL, 0, exec, hyprctl dispatch moveworkspacetomonitor 10 curren
# Example special workspace (scratchpad) # Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic bind = $mainMod SHIFT, S, movetoworkspace, special:magic
windowrule = bordersize 2, floating:0, onworkspace:special:magic
workspace = name:special:magic, gapsout:30
# Scroll through existing workspaces with mainMod + scroll # Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_down, workspace, e+1