Move all config files to config directory and add corresponding changes to bootstrap script

This commit is contained in:
2021-10-20 16:25:36 +03:00
parent 7bece0cbd7
commit 5ad043a15a
41 changed files with 49 additions and 45 deletions

22
config/polybar/logout-window.sh Executable file
View 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