first commit
This commit is contained in:
commit
8e85fe845b
22 changed files with 1449 additions and 0 deletions
13
hypr/scripts/launch-menu.sh
Executable file
13
hypr/scripts/launch-menu.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPTS="$HOME/.config/hypr/menu.list"
|
||||
SCRIPT_PATH="$HOME/.config/hypr/scripts"
|
||||
|
||||
# Kill existing tofi instance if running
|
||||
pkill -x tofi || {
|
||||
chosen=$(cut -d'=' -f1 "$SCRIPTS" | tofi)
|
||||
if [ -n "$chosen" ]; then
|
||||
script=$(awk -F= -v sel="$chosen" '$1==sel {print $2}' "$SCRIPTS")
|
||||
[ -n "$SCRIPT_PATH/$script" ] && eval "$SCRIPT_PATH/$script" &
|
||||
fi
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue