From 150d16c1507c2c36989fedc17c90a1ffd7116da4 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 27 Oct 2024 07:13:12 +0000 Subject: [PATCH] Add window rules for xdg-desktop-portal-gtk file picker dialog --- system/home/desktop/hyprland.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system/home/desktop/hyprland.nix b/system/home/desktop/hyprland.nix index 15d05a6b..8710b4b2 100644 --- a/system/home/desktop/hyprland.nix +++ b/system/home/desktop/hyprland.nix @@ -264,14 +264,20 @@ (lib.lists.forEach layers blur) ++ (lib.lists.forEach layers ignorealpha); windowrule = [ # Float + move system windows + # Password prompts "float, org.kde.polkit-kde-authentication-agent-1|Pinentry|pinentry-qt|gcr-prompter" "center, org.kde.polkit-kde-authentication-agent-1|Pinentry|pinentry-qt|gcr-prompter" "pin, org.kde.polkit-kde-authentication-agent-1|Pinentry|pinentry-qt|gcr-prompter" "dimaround, org.kde.polkit-kde-authentication-agent-1|Pinentry|pinentry-qt|gcr-prompter" "stayfocused, org.kde.polkit-kde-authentication-agent-1|Pinentry|pinentry-qt|gcr-prompter" + # Network and Bluetooth control panels "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" + "move onscreen 100%-820 50,pavucontrol|.blueman-manager-wrapped|nm-connection-editor" + # File picker dialog + "float, xdg-desktop-portal-gtk" + "size 800 600, xdg-desktop-portal-gtk" + "center, xdg-desktop-portal-gtk" # PrismLauncher / Minecraft "float, org.prismlauncher.PrismLauncher"