forked from Shinonome/dots-hyprland
Added support for handling workspace > 10 in ags bar and overview. Added support for navigating and moving workspaces for workspace > 10 using keybinds
This commit is contained in:
+24
-24
@@ -26,13 +26,13 @@ bind = Super+Shift, W, exec, wps
|
||||
|
||||
# Apps: Settings and config
|
||||
bind = Super, I, exec, XDG_CURRENT_DESKTOP="gnome" gnome-control-center
|
||||
bind = Control+Super, V, exec, pavucontrol
|
||||
bind = Control+Super, V, exec, pavucontrol
|
||||
bind = Control+Shift, Escape, exec, gnome-system-monitor
|
||||
|
||||
# Actions
|
||||
bind = Super, Period, exec, pkill fuzzel || ~/.local/bin/fuzzel-emoji
|
||||
bind = Super, Q, killactive,
|
||||
bind = Super+Alt, Space, togglefloating,
|
||||
bind = Super+Alt, Space, togglefloating,
|
||||
bind = Shift+Super+Alt, Q, exec, hyprctl kill
|
||||
bind = Control+Shift+Alt, Delete, exec, pkill wlogout || wlogout -p layer-shell
|
||||
bind = Control+Shift+Alt+Super, Delete, exec, systemctl poweroff
|
||||
@@ -150,32 +150,32 @@ bind = Super, D, fullscreen, 1
|
||||
bind = Super_Alt, F, fakefullscreen, 0
|
||||
|
||||
# Switching
|
||||
bind = Super, 1, workspace, 1
|
||||
bind = Super, 2, workspace, 2
|
||||
bind = Super, 3, workspace, 3
|
||||
bind = Super, 4, workspace, 4
|
||||
bind = Super, 5, workspace, 5
|
||||
bind = Super, 6, workspace, 6
|
||||
bind = Super, 7, workspace, 7
|
||||
bind = Super, 8, workspace, 8
|
||||
bind = Super, 9, workspace, 9
|
||||
bind = Super, 0, workspace, 10
|
||||
bind = Super, 1, exec, ~/.config/hypr/workspace_action.sh workspace 1
|
||||
bind = Super, 2, exec, ~/.config/hypr/workspace_action.sh workspace 2
|
||||
bind = Super, 3, exec, ~/.config/hypr/workspace_action.sh workspace 3
|
||||
bind = Super, 4, exec, ~/.config/hypr/workspace_action.sh workspace 4
|
||||
bind = Super, 5, exec, ~/.config/hypr/workspace_action.sh workspace 5
|
||||
bind = Super, 6, exec, ~/.config/hypr/workspace_action.sh workspace 6
|
||||
bind = Super, 7, exec, ~/.config/hypr/workspace_action.sh workspace 7
|
||||
bind = Super, 8, exec, ~/.config/hypr/workspace_action.sh workspace 8
|
||||
bind = Super, 9, exec, ~/.config/hypr/workspace_action.sh workspace 9
|
||||
bind = Super, 0, exec, ~/.config/hypr/workspace_action.sh workspace 10
|
||||
bind = Super, S, togglespecialworkspace,
|
||||
bind = Control+Super, S, togglespecialworkspace,
|
||||
bind = Alt, Tab, cyclenext
|
||||
bind = Alt, Tab, bringactivetotop, # bring it to the top
|
||||
|
||||
# Move window to workspace Super + Alt + [0-9]
|
||||
bind = Super+Alt, 1, movetoworkspacesilent, 1
|
||||
bind = Super+Alt, 2, movetoworkspacesilent, 2
|
||||
bind = Super+Alt, 3, movetoworkspacesilent, 3
|
||||
bind = Super+Alt, 4, movetoworkspacesilent, 4
|
||||
bind = Super+Alt, 5, movetoworkspacesilent, 5
|
||||
bind = Super+Alt, 6, movetoworkspacesilent, 6
|
||||
bind = Super+Alt, 7, movetoworkspacesilent, 7
|
||||
bind = Super+Alt, 8, movetoworkspacesilent, 8
|
||||
bind = Super+Alt, 9, movetoworkspacesilent, 9
|
||||
bind = Super+Alt, 0, movetoworkspacesilent, 10
|
||||
# Move window to workspace Super + Alt + [0-9]
|
||||
bind = Super+Alt, 1, exec, ~/.config/hypr/workspace_action.sh movetoworkspace 1
|
||||
bind = Super+Alt, 2, exec, ~/.config/hypr/workspace_action.sh movetoworkspace 2
|
||||
bind = Super+Alt, 3, exec, ~/.config/hypr/workspace_action.sh movetoworkspace 3
|
||||
bind = Super+Alt, 4, exec, ~/.config/hypr/workspace_action.sh movetoworkspace 4
|
||||
bind = Super+Alt, 5, exec, ~/.config/hypr/workspace_action.sh movetoworkspace 5
|
||||
bind = Super+Alt, 6, exec, ~/.config/hypr/workspace_action.sh movetoworkspace 6
|
||||
bind = Super+Alt, 7, exec, ~/.config/hypr/workspace_action.sh movetoworkspace 7
|
||||
bind = Super+Alt, 8, exec, ~/.config/hypr/workspace_action.sh movetoworkspace 8
|
||||
bind = Super+Alt, 9, exec, ~/.config/hypr/workspace_action.sh movetoworkspace 9
|
||||
bind = Super+Alt, 0, exec, ~/.config/hypr/workspace_action.sh movetoworkspace 10
|
||||
bind = Control+Shift+Super, Up, movetoworkspacesilent, special
|
||||
bind = Super+Alt, S, movetoworkspacesilent, special
|
||||
|
||||
@@ -192,7 +192,7 @@ bindm = Super, mouse:273, resizewindow
|
||||
bindm = Super, Z, movewindow
|
||||
bind = Control+Super, Backslash, resizeactive, exact 640 480
|
||||
|
||||
bindle = Alt, I, exec, ydotool key 103:1 103:0
|
||||
bindle = Alt, I, exec, ydotool key 103:1 103:0
|
||||
bindle = Alt, K, exec, ydotool key 108:1 108:0
|
||||
bindle = Alt, J, exec, ydotool key 105:1 105:0
|
||||
bindle = Alt, L, exec, ydotool key 106:1 106:0
|
||||
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
hyprctl dispatch $1 $((((`hyprctl activeworkspace -j | jq -r .id` - 1) / 10) * 10 + $2))
|
||||
Reference in New Issue
Block a user