updated all my files for rofi
[danixland-rofi.git] / scripts / danixland-powermenu.sh
diff --git a/scripts/danixland-powermenu.sh b/scripts/danixland-powermenu.sh
deleted file mode 100644 (file)
index 00fa7cf..0000000
+++ /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
-