From 00734508027aebbfdc6c9f3c77457d9610b8067b Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 10 Mar 2024 11:22:05 +0000 Subject: [PATCH] Add floating rule for PrismLauncher --- home/hyprland/default.nix | 47 ++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 97597e8e..ef98a794 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -196,43 +196,48 @@ ++ (lib.lists.forEach layers ignorealpha); windowrule = [ # Float + move system windows - "float,org.kde.polkit-kde-authentication-agent-1|Pinentry" - "center,org.kde.polkit-kde-authentication-agent-1|Pinentry" - "pin,org.kde.polkit-kde-authentication-agent-1|Pinentry" - "dimaround,org.kde.polkit-kde-authentication-agent-1|Pinentry" - "stayfocused,org.kde.polkit-kde-authentication-agent-1|Pinentry" - "float,pavucontrol|.blueman-manager-wrapped|nm-connection-editor" - "size 800 600,pavucontrol|.blueman-manager-wrapped|nm-connection-editor" + "float, org.kde.polkit-kde-authentication-agent-1|Pinentry" + "center, org.kde.polkit-kde-authentication-agent-1|Pinentry" + "pin, org.kde.polkit-kde-authentication-agent-1|Pinentry" + "dimaround, org.kde.polkit-kde-authentication-agent-1|Pinentry" + "stayfocused, org.kde.polkit-kde-authentication-agent-1|Pinentry" + "float, pavucontrol|.blueman-manager-wrapped|nm-connection-editor" + "size 800 600, pavucontrol|.blueman-manager-wrapped|nm-connection-editor" "move onscreen 100%-820 60,pavucontrol|.blueman-manager-wrapped|nm-connection-editor" # LibreOffice "nomaximizerequest, (libreoffice|soffice)(.*)" "nofullscreenrequest, (libreoffice|soffice)(.*)" + # PrismLauncher / Minecraft + "float, org.prismlauncher.PrismLauncher" + "center, org.prismlauncher.PrismLauncher" + "size 800 600, org.prismlauncher.PrismLauncher" + # Remmina / NoMachine - "nofullscreenrequest,org.remmina.Remmina|Nxplayer.bin" - "nomaximizerequest,org.remmina.Remmina|Nxplayer.bin" + "nofullscreenrequest, org.remmina.Remmina|Nxplayer.bin" + "nomaximizerequest, org.remmina.Remmina|Nxplayer.bin" ]; windowrulev2 = [ # Firefox PIP - "float,title:Picture-in-Picture|Library,class:firefox" - "size 750 400,title:Picture-in-Picture,class:firefox" - "size 800 800,title:Library,class:firefox" - "move onscreen 100%-775 100%-425,title:Picture-in-Picture,class:firefox" - "center,title:Library,class:firefox" - "pin,title:Picture-in-Picture,class:firefox" + "float, title:Picture-in-Picture|Library,class:firefox" + "size 750 400, title:Picture-in-Picture,class:firefox" + "size 800 800, title:Library,class:firefox" + "move onscreen 100%-775 100%-425, title:Picture-in-Picture,class:firefox" + "center, title:Library,class:firefox" + "pin, title:Picture-in-Picture,class:firefox" # LibreOffice - "float,title:Open,class:(libreoffice|soffice)(.*)" + "float, title:Open,class:(libreoffice|soffice)(.*)" # Steam - "float,title:Friends List,class:steam" - "float,title:Steam Settings,class:steam" + "float, title:Friends List,class:steam" + "float, title:Steam Settings,class:steam" # Remmina / NoMachine - "float,title:Remmina Remote Desktop Client|Remmina Preferences,class:org.remmina.Remmina" - "size 800 600,title:Remmina Remote Desktop Client|Remmina Preferences,class:org.remmina.Remmina" - "move onscreen 100%-820 60,title:Remmina Remote Desktop Client|Remmina Preferences,class:org.remmina.Remmina" + "float, title:Remmina Remote Desktop Client|Remmina Preferences,class:org.remmina.Remmina" + "size 800 600, title:Remmina Remote Desktop Client|Remmina Preferences,class:org.remmina.Remmina" + "move onscreen 100%-820 60, title:Remmina Remote Desktop Client|Remmina Preferences,class:org.remmina.Remmina" ]; bind = let withTerm = {