From 025485fd9a6d57fe13a142c1a2adba51e8cbf2b3 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 6 Dec 2025 00:12:20 -0600 Subject: [PATCH] fix: fullscreen fuckery --- .../desktop/hypr/land/config/windowrulev2.nix | 50 ++++++++----------- 1 file changed, 22 insertions(+), 28 deletions(-) diff --git a/modules/home/gui/desktop/hypr/land/config/windowrulev2.nix b/modules/home/gui/desktop/hypr/land/config/windowrulev2.nix index 5b3196c..4e8b3fe 100755 --- a/modules/home/gui/desktop/hypr/land/config/windowrulev2.nix +++ b/modules/home/gui/desktop/hypr/land/config/windowrulev2.nix @@ -1,28 +1,30 @@ let + battle = "(.*Battle.net.*)"; + bitwarden = "(.*Bitwarden.*)"; blueman = "(.blueman-manager-wrapped)"; calculator = "(org.gnome.Calculator)"; - pavucontrol = "(org.pulseaudio.pavucontrol)"; - floorp = "(floorp)"; - nomacs = "(org.nomacs.ImageLounge)"; - mpv = "(mpv)"; - vlc = "(vlc)"; + discord-popout = "(.*Discord Popout.*)"; emote = "(emote)"; flameshot = "(flameshot)"; - bitwarden = "(.*Bitwarden.*)"; - save = "(.*Enter name of file to save to….*)"; - proton = "(.*.protonvpn-app-wrapped.*)"; - picture = "(.*Picture-in-Picture.*)"; - discord-popout = "(.*Discord Popout.*)"; - upload = "(.*File Upload.*)"; - signal = "(signal)"; - vesktop = "(vesktop)"; - code = "(code)"; - feishin = "(feishin)"; - steam = "(steam)"; + floorp = "(floorp)"; kdenlive = "(org.kde.kdenlive)"; - shotcut = "(shotcut)"; + mpv = "(mpv)"; + nomacs = "(org.nomacs.ImageLounge)"; + pavucontrol = "(org.pulseaudio.pavucontrol)"; + picture = "(.*Picture-in-Picture.*)"; + proton = "(protonvpn-app)"; + save = "(.*Enter name of file to save to….*)"; scrcpy = "(.scrcpy-wrapped)"; - battle = "(.*Battle.net.*)"; + shotcut = "(shotcut)"; + signal = "(signal)"; + steam = "(steam)"; + upload = "(.*File Upload.*)"; + vesktop = "(vesktop)"; + vlc = "(vlc)"; + + # noFullscreen = builtins.map (x: "nofullscreenrequest, ") [ + # "class:^${floorp}" + # ]; maxsizeWindows = [ "maxsize 720 400, class:^${blueman}$" @@ -31,7 +33,7 @@ let "maxsize 720 400, class:^${mpv}$" "maxsize 720 400, class:^${vlc}$" "maxsize 640 360, class:^${nomacs}$" - "maxsize 1000 600, class:^${proton}$" + "maxsize 800 600, class:^${proton}$" "maxsize 800 450, title:^${bitwarden}$" "maxsize 720 400, title:^${picture}$" "maxsize 720 400, title:^${save}$" @@ -68,10 +70,6 @@ let "title:^${discord-popout}$" ]; - idleInhibit = builtins.map (x: "idleinhibit, " + x) [ - "fullscreen, class:^${floorp}$" - ]; - workspaceInit1 = builtins.map (x: "workspace 1 silent, " + x) [ "class:^${signal}$" "class:^${vesktop}$" @@ -89,10 +87,7 @@ let workspaceInit4 = builtins.map (x: "workspace 4 silent, " + x) [ ]; - workspaceInit5 = builtins.map (x: "workspace 5 silent, " + x) [ - "class:^${feishin}$" - "class:^${scrcpy}$" - ]; + centerWindows = builtins.map (x: "center, " + x) [ "class:^${blueman}$" "class:^${calculator}$" @@ -127,7 +122,6 @@ in maxsizeWindows ++ floatWindows ++ pinWindows -++ idleInhibit ++ workspaceInit1 ++ workspaceInit2 ++ workspaceInit3