From 335b60f43c9ca45c5814f9c0bcbe545318f2fb1f Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Wed, 8 Oct 2025 08:55:26 -0400 Subject: [PATCH] feat: Adds window rules for windowctl windows to be floating when opened a new window. --- env/.config/hypr/windows.conf | 3 ++- env/.local/scripts/weather | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/env/.config/hypr/windows.conf b/env/.config/hypr/windows.conf index 1ea9f4a..d7fa608 100644 --- a/env/.config/hypr/windows.conf +++ b/env/.config/hypr/windows.conf @@ -17,12 +17,13 @@ windowrule = size 90% 80%, class:^(com.ghostty.weather)$ # Force windows to be a floating window windowrule = tag +floating-window, class:^(blueberry.py|org.gnome.Nautilus|com.ghostty.float)$ -# windowrule = tag +floating-window, class:^(com.ghostty.utils-launcher)$ +windowrule = tag +floating-window, class:^(com.ghostty.windowctl)$ # Force to stay focused when visible. windowrule = stayfocused, class:(blueberry.py) windowrule = stayfocused, class:Pinentry.gtk windowrule = stayfocused, class:com.ghostty.float +windowrule = stayfocused, class:com.ghostty.windowctl # Utils-Launcher windowrule = stayfocused, class:^(com.ghostty.utils-launcher)$ diff --git a/env/.local/scripts/weather b/env/.local/scripts/weather index 44484fa..8d13f82 100755 --- a/env/.local/scripts/weather +++ b/env/.local/scripts/weather @@ -46,7 +46,8 @@ while [[ $# -gt 0 ]]; do done get_weather() { - gum spin --show-output --title="Loading weather for: $location..." curl "wttr.in/$location" + gum spin --show-output --title="Loading weather for: $location..." \ + curl "wttr.in/$location" } ################################################## @@ -67,7 +68,6 @@ elif [[ $launch_flag == "1" ]]; then elif [[ $interactive_flag == "1" ]]; then # Interactive mode starts a loop until the user quits. It prompts them to quit or refresh the weather results. while [[ $should_continue == "0" ]]; do - echo "Fetching weather for: $location" get_weather # Set's should_continue to '0' if when user hits the quit option or '1' if the hit refresh. should_continue=$(gum confirm "Weather: $location" --affirmative Refresh --negative Quit && echo "0" || echo "1")