feat: Moves hyprland scripts into it's own directory.

This commit is contained in:
2025-10-03 23:43:29 -04:00
parent 1def0356d7
commit d32d0cf64f
16 changed files with 26 additions and 14 deletions

View File

@@ -160,7 +160,7 @@ fi
if [[ -n $CUSTOM_EXEC ]] && [[ ! $CUSTOM_EXEC == "null" ]]; then
EXEC_COMMAND="$CUSTOM_EXEC"
else
EXEC_COMMAND="${SCRIPTS:-$HOME/.local/scripts}/launch-webapp $APP_URL"
EXEC_COMMAND="${SCRIPTS:-$HOME/.local/scripts}/hypr/launch-webapp $APP_URL"
fi
# Create application .desktop file

View File

@@ -1,11 +1,11 @@
#!/usr/bin/env bash
# /usr/bin/env bash
# Adapted from https://github.com/basecamp/omarchy/tree/master?tab=readme-ov-file
usage() {
cat <<EOF
Launches a url as a web application. This script relys on the 'launch-or' script. This
Launches a url as a web application. This script relys on the 'launch' script. This
essentially just generates the pattern and launch command to pass into that script.
USAGE:
@@ -92,5 +92,5 @@ echo "URL: $url"
echo "Launch args: ${launch_args[@]}"
echo "App args: ${app_args}"
$SCRIPTS/launch "${launch_args[@]}" "$(pattern)" \
$SCRIPTS/hypr/launch "${launch_args[@]}" "$(pattern)" \
setsid uwsm app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,~/.nix-profile,/usr}/share/applications/$browser 2>/dev/null | head -1) --app="$url" "$app_args"