From 009efbb95223fbdeaa634c304d1353da9fbd4922 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Mon, 6 Oct 2025 10:57:07 -0400 Subject: [PATCH] fix: Fixes install-webapp script not properly handling spaces in the desktop file name. --- env/.config/hypr/keybinds.conf | 7 ++++--- env/.local/scripts/hypr/install-webapp | 2 +- env/.local/scripts/hypr/launch | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/env/.config/hypr/keybinds.conf b/env/.config/hypr/keybinds.conf index d4dd3f9..d5fe8ea 100644 --- a/env/.config/hypr/keybinds.conf +++ b/env/.config/hypr/keybinds.conf @@ -35,7 +35,7 @@ $housecallPro = https://pro.housecallpro.com/app/calendar_new bindd = $mainMod, SPACE, Application launcher, exec, $menu bindd = $mainMod, RETURN, New terminal, exec, $terminal bindd = $mainMod SHIFT, RETURN, New floating terminal, exec, $terminal --class=com.ghostty.float -bindd = $mainMod, TAB, Focus previous workspace, exec, $scripts/switch-to-workspace previous #workspace, previous +bindd = $mainMod, TAB, Focus previous workspace, exec, $scripts/switch-to-workspace previous bindd = $mainMod, A, [A]i - launch / focus, exec, $pwa --or-focus "https://chatgpt.com" bindd = $mainMod SHIFT, A, [A]i - new window, exec, $pwa "https://chatgpt.com" bindd = $mainMod, B, New [b]rowser, exec, $browser @@ -43,12 +43,13 @@ bindd = $mainMod SHIFT, B, New private [b]rowser, exec, bindd = $mainMod, C, [C]alendar, exec, $pwa --or-focus "https://www.icloud.com/calendar" bindd = $mainMod SHIFT, C, [C]onfig folder in tmux session, exec, $terminal -e $tmuxSessionator ~/.config bindd = $mainMod, D, [D]ispatch app - special workspace, exec, $pwa --special dispatch $housecallPro -bindd = $mainMod SHIFT, D, [D]ispatch app - new window, exec, $pwa --new-instance $housecallPro +bindd = $mainMod SHIFT, D, [D]ispatch app - new window, exec, $pwa --new $housecallPro bindd = $mainMod, E, [E]mail - personal, exec, $pwa --or-focus "https://mail.proton.me" bindd = $mainMod SHIFT, E, [E]mail - work, exec, $scripts/launch --or-focus thunderbird uwsm app -- thunderbird bindd = $mainMod, F, [F]ile manager - terminal, exec, $fileManager bindd = $mainMod SHIFT, F, [F]ile manager - application, exec, $fileBrowser -bindd = $mainMod, G, [G]itea, exec, $pwa "https://git.housh.dev" +bindd = $mainMod, G, [G]itea, exec, $pwa --or-focus "https://git.housh.dev" +bindd = $mainMod SHIFT, G, [G]ithub, exec, $pwa --or-focus "https://github.com" bindd = $mainMod, H, Focus window - left, movefocus, l # move window focus using vim keys bindd = $mainMod SHIFT, H, Workspace - back, workspace, -1 bindd = $mainMod, J, Focus window - down, movefocus, d # move window focus using vim keys diff --git a/env/.local/scripts/hypr/install-webapp b/env/.local/scripts/hypr/install-webapp index 857f257..4e53a08 100755 --- a/env/.local/scripts/hypr/install-webapp +++ b/env/.local/scripts/hypr/install-webapp @@ -294,7 +294,7 @@ log "\e[032mCreating web app:\e[0m $desktop_file" print_properties if [[ $dry_run == "0" ]]; then - generate_file $desktop_file + generate_file "$desktop_file" fi if [[ $interactive_mode == true ]] && [[ $dry_run == "0" ]]; then diff --git a/env/.local/scripts/hypr/launch b/env/.local/scripts/hypr/launch index 1321f8e..a8d4468 100755 --- a/env/.local/scripts/hypr/launch +++ b/env/.local/scripts/hypr/launch @@ -23,7 +23,7 @@ OPTIONS: instance. -x | --close-active-only: Close only windows on active workspace matching the pattern. -s | --special : Launch or toggle a special workspace. - -n | --new-instance: Launch a new instance of an application. + -n | --new: Launch a new instance of an application. -h | --help: Show this help page. NOTES: @@ -73,7 +73,7 @@ while [[ $# -gt 0 ]]; do close_flag="1" close_active_only_flag="1" action="closewindow" - elif [[ $1 == "-n" ]] || [[ $1 == "--new-instance" ]]; then + elif [[ $1 == "-n" ]] || [[ $1 == "--new" ]]; then new_instance_flag="1" elif [[ $1 == "-h" ]] || [[ $1 == "--help" ]]; then usage && exit 0