yadm-config/.config/hypr/scripts/Toolkit.sh
2025-05-18 18:29:55 +02:00

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