fixed $mod+scroll not acting as intended

now acts like workspace_swipe, though it does allow creation of new
workspaces even if the current one is empty which is a bit silly
This commit is contained in:
Gabriella Bere 2025-05-02 15:05:24 +01:00
parent a5bc732d9e
commit a9087286e9

View file

@ -12,7 +12,7 @@
"desc:Lenovo Group Limited LEN G24-10 U5B4ZAM2, 1920x1080@119.98, 960x-1080, auto" # right external monitor "desc:Lenovo Group Limited LEN G24-10 U5B4ZAM2, 1920x1080@119.98, 960x-1080, auto" # right external monitor
]; ];
workspace = [ workspace = [
"name:comms, monitor:desc:Lenovo Group Limited LEN G24-10 U5B4KL78" "name:comms, monitor:desc:Lenovo Group Limited LEN G24-10 U5B4KL78, default:true"
]; ];
# Define SUPER key as mod key # Define SUPER key as mod key
@ -37,10 +37,10 @@
"$mod, mouse:273, resizewindow" "$mod, mouse:273, resizewindow"
]; ];
exec-once = [ exec-once = [
"[workspace 2 silent] telegram-desktop" "[workspace name:comms silent] telegram-desktop"
"[workspace 2 silent] signal-desktop" "[workspace name:comms silent] signal-desktop"
"[workspace 2 silent] firefox https://web.whatsapp.com https://instagram.com" "[workspace name:comms silent] firefox https://web.whatsapp.com https://instagram.com"
"[workspace 2 silent] vesktop" "[workspace name:comms silent] vesktop"
]; ];
windowrule = [ windowrule = [
"move 100%,100%, title:*WhatsApp*" "move 100%,100%, title:*WhatsApp*"
@ -70,11 +70,12 @@
"$mod, x, killactive" "$mod, x, killactive"
"$mod, tab, togglefloating" "$mod, tab, togglefloating"
# Workspace management # Workspace swipe but with $mod+scroll
"$mod, mouse_up, workspace, +1" "$mod, mouse_up, workspace, r+1"
"$mod, mouse_down, workspace, -1" "$mod, mouse_down, workspace, r-1"
"$mod SHIFT, right, movetoworkspace, +1" # Send window to next workspace
"$mod SHIFT, left, movetoworkspace, -1" "$mod SHIFT, mouse_up, movetoworkspace, r+1"
"$mod SHIFT, mouse_down, movetoworkspace, r-1"
]; ];
# Prevent xwayland apps from looking pixellated, cursor scaling to compensate for this is defined in home.nix # Prevent xwayland apps from looking pixellated, cursor scaling to compensate for this is defined in home.nix