diff options
| author | silly <u65487754@gmail.com> | 2026-03-07 14:44:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-07 14:44:51 +0100 |
| commit | 24797d719976aae171db7e767caafe9ce4f996a0 (patch) | |
| tree | 36415f99e5f2a73ffff8e554bba1150c920ba5f1 /.config | |
| parent | a34de7317b0292179ba8a532931e970868241d3b (diff) | |
Update power.sh
Diffstat (limited to '.config')
| -rw-r--r-- | .config/scripts/power.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/scripts/power.sh b/.config/scripts/power.sh index 8b13789..6c5ad4e 100644 --- a/.config/scripts/power.sh +++ b/.config/scripts/power.sh @@ -1 +1,19 @@ +#!/bin/bash +options="lock\nlogout\nshutdown\nreboot" +choice=$(echo -e "$options" | rofi -dmenu -p "power" -i) + +case "$choice" in + lock) + hyprlock + ;; + logout) + command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit + ;; + shutdown) + shutdown now + ;; + reboot) + reboot + ;; +esac |
