From 9f20c1f313e20102dd83adeaf091284be1fd82d0 Mon Sep 17 00:00:00 2001 From: "eric.marin" Date: Wed, 11 Sep 2024 14:49:39 +0200 Subject: config --- rofi/powermenu.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 rofi/powermenu.sh (limited to 'rofi/powermenu.sh') diff --git a/rofi/powermenu.sh b/rofi/powermenu.sh new file mode 100755 index 0000000..2adc4c4 --- /dev/null +++ b/rofi/powermenu.sh @@ -0,0 +1,17 @@ +#! /bin/sh + +poweroff="" +reboot="" +lock="" +exit="󰗼" + +chosen=$(echo -e "$poweroff\n$reboot\n$lock\n$exit" | rofi -dmenu -theme powermenu.rasi) + +case "$chosen" in + "$poweroff") shutdown now ;; + "$reboot") reboot ;; + "$lock") loginctl lock-session ;; + "$exit") hyprctl dispatch exit ;; + *) exit 1 ;; +esac + -- cgit v1.2.3