Skip to content

Commit

Permalink
fix(hyprland): fix quake mode for new hyprland version
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 22, 2024
1 parent fb0cc7b commit cb1d6f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions config/hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ windowrule = fullscreen, wlogout
windowrule = float, title:wlogout
windowrule = fullscreen, title:wlogout
windowrulev2 = fullscreen,class:RetroArch
windowrulev2 = float,class:(quake)
windowrulev2 = center,class:(quake)
windowrulev2 = dimaround,class:(quake)
windowrulev2 = noanim,class:(quake)
windowrulev2 = float,class:(folke\.quake)
windowrulev2 = center,class:(folke\.quake)
windowrulev2 = dimaround,class:(folke\.quake)
windowrulev2 = noanim,class:(folke\.quake)
windowrulev2 = size 1400 875,class:(quake)
windowrulev2 = idleinhibit fullscreen,class:microsoft-edge
windowrulev2 = idleinhibit fullscreen,class:Brave-browser
Expand Down
6 changes: 3 additions & 3 deletions config/hypr/scripts/quake
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ elif [ "$WORKSPACE" == "special:quake" ]; then
hyprctl activewindow | rg "fullscreen: 1" && hyprctl dispatch fullscreenstate 0 0

# Move the quake window to the current workspace, focus it, and bring it to the top
hyprctl dispatch movetoworkspacesilent "+0,^(folke\.quake)\$"
hyprctl dispatch focuswindow "^(folke\.quake)\$"
hyprctl dispatch movetoworkspacesilent "+0,class:^(folke\.quake)\$"
hyprctl dispatch focuswindow "class:^(folke\.quake)\$"
hyprctl dispatch bringactivetotop
else
echo "hide"

# Move the quake window to the special workspace
hyprctl dispatch movetoworkspacesilent "special:quake,^(folke\.quake)\$"
hyprctl dispatch movetoworkspacesilent "special:quake,class:^(folke\.quake)\$"

# Focus the previously active window and bring it to the top
hyprctl dispatch focuswindow "address:0x$(cat /tmp/hypr-quake-address)"
Expand Down

0 comments on commit cb1d6f9

Please sign in to comment.