summaryrefslogtreecommitdiff
path: root/.config/scripts
diff options
context:
space:
mode:
authorsilly <u65487754@gmail.com>2026-03-07 14:44:51 +0100
committerGitHub <noreply@github.com>2026-03-07 14:44:51 +0100
commit24797d719976aae171db7e767caafe9ce4f996a0 (patch)
tree36415f99e5f2a73ffff8e554bba1150c920ba5f1 /.config/scripts
parenta34de7317b0292179ba8a532931e970868241d3b (diff)
Update power.sh
Diffstat (limited to '.config/scripts')
-rw-r--r--.config/scripts/power.sh18
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