mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-02-07 06:18:59 +00:00
Create a common user action script
This commit is contained in:
parent
dfefb45564
commit
a503687099
13
.scripts/rofi-user-action-menu.sh
Normal file
13
.scripts/rofi-user-action-menu.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user