15 lines
427 B
Bash
Executable file
15 lines
427 B
Bash
Executable file
#!/bin/env sh
|
|
|
|
SCRIPTS_DIR="$HOME/.config/hypr/scripts"
|
|
|
|
declare -A scripts
|
|
scripts["Shutdown"]="systemctl poweroff"
|
|
scripts["Reboot"]="systemctl reboot"
|
|
scripts["Logout"]="logout terminate-user $USER"
|
|
scripts["Lock"]="$SCRIPTS_DIR/LockScreen.sh"
|
|
scripts["Notification Center (SwayNC)"]="swaync-client -t -sw"
|
|
|
|
selected=$(printf "%s\n" "${!scripts[@]}" | anyrun --plugins libstdin.so)
|
|
|
|
command="${scripts[$selected]}"
|
|
$command
|