Files
colorshell/hypr/scripts/exec.sh
T
2025-06-15 23:37:04 -03:00

17 lines
406 B
Bash

#!/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