Files
colorshell/config/hypr/scripts/exec.sh
T
2025-08-31 13:38:33 -03:00

22 lines
402 B
Bash

#!/usr/bin/env bash
# This script executes the provided program with UWSM
# if active, or else normally.
# ---------------
# Licensed under the BSD 3-Clause License
# Made by retrozinndev (João Dias)
# From: https://github.com/retrozinndev/colorshell
if uwsm check is-active; then
exec uwsm app -- "$@"
exit 0
fi
if [[ $1 =~ [.]desktop$ ]]; then
gtk-launch $@
exit 0
fi
exec "$@"