mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update vim, git, tmux, migrate to light theme
This commit is contained in:
parent
72c267b784
commit
04331d3e94
16 changed files with 181 additions and 229 deletions
|
|
@ -1,22 +1,23 @@
|
|||
#!/usr/bin/env bash
|
||||
declare options=("ShutDown\nLogOut\nReboot")
|
||||
rofitheme="nten-light-dmenu"
|
||||
choice=$(echo -e ${options[@]} | rofi -dmenu -p "Power" -theme $rofitheme)
|
||||
|
||||
choice=$(echo -e ${options[@]} | rofi -dmenu -p "Power" -theme nten-dmenu)
|
||||
case $choice in
|
||||
"ShutDown")
|
||||
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "ShutDown" -theme nten-dmenu)" in
|
||||
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "ShutDown" -theme $rofitheme)" in
|
||||
"Yes") exec systemctl poweroff ;;
|
||||
"no") exec exit 0 ;;
|
||||
esac
|
||||
;;
|
||||
"LogOut")
|
||||
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "LogOut" -theme nten-dmenu)" in
|
||||
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "LogOut" -theme $rofitheme)" in
|
||||
"Yes") exec loginctl terminate-session $XDG_SESSION_ID ;;
|
||||
"No") exec exit 0 ;;
|
||||
esac
|
||||
;;
|
||||
"Reboot")
|
||||
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "Reboot" -theme nten-dmenu)" in
|
||||
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "Reboot" -theme $rofitheme)" in
|
||||
"Yes") exec systemctl reboot ;;
|
||||
"No") exec exit 0 ;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue