Move all config files to config directory and add corresponding changes to bootstrap script
This commit is contained in:
22
config/polybar/logout-window.sh
Executable file
22
config/polybar/logout-window.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#! /bin/bash
|
||||
|
||||
action=$(yad --width 300 --entry --title "System Logout" \
|
||||
--button="Ok" --button="Cancel" \
|
||||
--text "What to do?" \
|
||||
--entry-text \
|
||||
"Power Off" "Reboot" "Logout" \
|
||||
)
|
||||
|
||||
return=$?
|
||||
|
||||
if [[ $return -eq 1 ]] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case $action in
|
||||
Power*) cmd="systemctl poweroff" ;;
|
||||
Reboot*) cmd="systemctl reboot" ;;
|
||||
Logout*) cmd="i3-msg exit"
|
||||
esac
|
||||
|
||||
eval exec $cmd
|
||||
Reference in New Issue
Block a user