🔧 chore(hypr/scripts/exec): support executing desktop entries by name

This commit is contained in:
retrozinndev
2025-08-17 20:15:03 -03:00
parent 90f71a63cc
commit 1fa6c018a4
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# This script executes the provided program with UWSM # This script executes the provided program with UWSM
# if in usage or launches it normally with hyprctl. # if active, or else normally.
# --------------- # ---------------
# Licensed under the MIT License # Licensed under the MIT License
# Made by retrozinndev (João Dias) # Made by retrozinndev (João Dias)
@@ -13,4 +13,9 @@ if uwsm check is-active; then
exit 0 exit 0
fi fi
if [[ $1 =~ [.]desktop$ ]]; then
gtk-launch $@
exit 0
fi
exec "$@" exec "$@"
+1 -1
View File
@@ -18,4 +18,4 @@ exec-once = sh $XDG_CONFIG_HOME/hypr/scripts/gen-pywal.sh
exec-once = sleep 3 && sh $XDG_CONFIG_HOME/hypr/scripts/load-hyprsunset.sh # wait some time to actually set the filters exec-once = sleep 3 && sh $XDG_CONFIG_HOME/hypr/scripts/load-hyprsunset.sh # wait some time to actually set the filters
# Shell # Shell
exec-once = $exec colorshell exec-once = $exec colorshell.desktop