Files
dotfiles/dot_local/bin/executable_owlry-power-menu
mpuchstein 345ee2b608 owlry: migrate config to Lua and refresh for 2.2
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'.
2026-06-01 22:10:13 +02:00

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