🔧 chore(hypr): add $exec variable, use uwsm everywhere

This commit is contained in:
retrozinndev
2025-06-15 23:37:04 -03:00
parent a669e1acc3
commit 171d6408d1
5 changed files with 36 additions and 16 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# This script executes the provided program with UWSM
# if in usage or launches it normally with hyprctl.
# ---------------
# Licensed under the MIT License
# Made by retrozinndev (João Dias)
# From: https://github.com/retrozinndev/colorshell
if uwsm check is-active; then
hyprctl dispatch exec "uwsm app -- $@" > /dev/null
exit 0
fi
hyprctl dispatch exec "$@" > /dev/null