From 24797d719976aae171db7e767caafe9ce4f996a0 Mon Sep 17 00:00:00 2001 From: silly Date: Sat, 7 Mar 2026 14:44:51 +0100 Subject: Update power.sh --- .config/scripts/power.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to '.config/scripts') 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 -- cgit v1.3.1