X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=scripts%2Fdanixland-powermenu.sh;fp=scripts%2Fdanixland-powermenu.sh;h=0000000000000000000000000000000000000000;hb=a442b5f5948a8099c458cc85b7dc3ae8a3af1f28;hp=00fa7cf7a000d313320166b62cd1d243a73ac4a2;hpb=dfe1ea0cd0abfd1ed332cbbd85d3d73108b4be49;p=danixland-rofi.git diff --git a/scripts/danixland-powermenu.sh b/scripts/danixland-powermenu.sh deleted file mode 100644 index 00fa7cf..0000000 --- a/scripts/danixland-powermenu.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -rofi_command="rofi -theme danixland/powermenu.rasi" - -### Options ### -power_off="" -reboot="" -lock="" -suspend="鈴" -log_out="" -# Variable passed to rofi -options="$power_off\n$reboot\n$lock\n$suspend\n$log_out" - -chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)" -case $chosen in - $power_off) - notify-send 'shutting down' 'the system is going to shutdown now' - sleep 1 - sudo /sbin/shutdown -h now - ;; - $reboot) - notify-send 'rebooting the system' 'the system is going to reboot now' - sleep 1 - sudo /sbin/shutdown -r now - ;; - $lock) - sleep 1 - i3lock-wrapper - ;; - $suspend) - sleep 1 - i3suspend - ;; - $log_out) - i3-exit - ;; -esac -