feat: Adds window rules for windowctl windows to be floating when opened a new window.

This commit is contained in:
2025-10-08 08:55:26 -04:00
parent 99110dea2a
commit 335b60f43c
2 changed files with 4 additions and 3 deletions

View File

@@ -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)$

View File

@@ -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")