Create a common user action script

This commit is contained in:
foo-dogsquared 2019-09-01 14:22:53 +08:00
parent dfefb45564
commit a503687099

View File

@ -0,0 +1,13 @@
#!/bin/sh
options='shutdown 0 -P
reboot
i3-msg exit'
command=$(echo -e "$options" | rofi -dmenu -p "Select the command to execute.")
continue=$(echo -e "No\nYes" | rofi -dmenu -p "You really want to continue with '$command'?")
if [[ $continue == "Yes" ]]; then
eval "$command"
fi