Update alacritty, kitty, bspwm, i3wm, vim,tmux configs & sctipts

This commit is contained in:
Smirnov Olexandr 2021-01-24 23:08:44 +02:00
parent 246dc34d13
commit c7da10d076
22 changed files with 256 additions and 282 deletions

View file

@ -4,23 +4,24 @@ Lock
Logout
Reboot")
choice=$(echo -e "${options[@]}"|dmenu -p "Power" $@)
menucmd="rofi -location 2 -dmenu"
choice=$(echo -e "${options[@]}"|${menucmd} -p "Power" $@)
case "$choice" in
"ShutDown")
case "$(echo -e "Yes\nNo"|dmenu -p "ShutDown" $@)" in
case "$(echo -e "Yes\nNo"|${menucmd} -p "ShutDown" $@)" in
"Yes") exec systemctl poweroff ;;
"No") exec exit 0 ;;
esac
;;
"Lock") exec betterlockscreen --off 300 -t "Computer is lockerd" -l ;;
"Logout")
case "$(echo -e "Yes\nNo"|dmenu -p "ShutDown" $@)" in
case "$(echo -e "Yes\nNo"|${menucmd} -p "ShutDown" $@)" in
"Yes") exec loginctl terminate-session $XDG_SESSION_ID ;;
"No") exec exit 0 ;;
esac
;;
"Reboot")
case "$(echo -e "Yes\nNo"|dmenu -p "Reboot" $@)" in
case "$(echo -e "Yes\nNo"|${menucmd} -p "Reboot" $@)" in
"Yes") exec systemctl reboot ;;
"No") exec exit 0 ;;
esac