345ee2b608
Replace the deprecated config.toml with an explicit, self-documenting owlry.lua. Drop config.toml (ignored once owlry.lua exists; removed in owlry 3.0). Disable the ssh provider (SSH is done from a terminal) and keep filesearch out of the global set, enabling it only in a new dev profile scoped to ~/Dev. Bump frecency_weight to 0.5, set tabs to app/clipboard/emoji. Modernize the dmenu scripts to 'owlry dmenu'.
19 lines
416 B
Bash
19 lines
416 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
choice=$(printf '%s\n' \
|
|
"lock" \
|
|
"suspend" \
|
|
"logout" \
|
|
"reboot" \
|
|
"shutdown" \
|
|
| owlry dmenu -p "Power")
|
|
|
|
case "$choice" in
|
|
lock) swaylock -f ;;
|
|
suspend) systemctl suspend ;;
|
|
logout) hyprshutdown ;;
|
|
reboot) hyprshutdown -t 'Restarting...' --post-cmd 'reboot' ;;
|
|
shutdown) hyprshutdown -t 'Shutting down...' --post-cmd 'shutdown -P now' ;;
|
|
esac
|