init
This commit is contained in:
14
hypr/scripts/launch_app
Executable file
14
hypr/scripts/launch_app
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
program="$1"
|
||||
|
||||
if ! command -v "$program" >/dev/null 2>&1; then
|
||||
notify-send "Program not found" "Make sure you have installed $program"
|
||||
exit 1
|
||||
else
|
||||
exec $@
|
||||
fi
|
||||
Reference in New Issue
Block a user