mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-13 22:02:34 +00:00
feat: Adds window rules for windowctl windows to be floating when opened a new window.
This commit is contained in:
3
env/.config/hypr/windows.conf
vendored
3
env/.config/hypr/windows.conf
vendored
@@ -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)$
|
||||
|
||||
4
env/.local/scripts/weather
vendored
4
env/.local/scripts/weather
vendored
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user