Moves scripts to own folder

This commit is contained in:
Michel Fedde 2025-06-07 20:47:27 +02:00
parent 36dbfbc689
commit bcb83fb7be
32 changed files with 69 additions and 645 deletions

View file

@ -0,0 +1,15 @@
#!/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