diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2022-05-02 23:02:43 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2022-05-02 23:02:43 -0600 |
commit | a65108b731e772fadf383158eb44313c7c54787e (patch) | |
tree | 496ee10c23c23e777546882bbf3e6370b8f5bc59 /bash/.bash/03-boot.bash | |
parent | d5dfe1f1251f38bcba43138b5e53c1201b331fd0 (diff) | |
download | dotfiles-a65108b731e772fadf383158eb44313c7c54787e.tar dotfiles-a65108b731e772fadf383158eb44313c7c54787e.tar.gz dotfiles-a65108b731e772fadf383158eb44313c7c54787e.tar.bz2 |
idk, did some nvim stuff and xinitrc tweaks
Diffstat (limited to 'bash/.bash/03-boot.bash')
-rw-r--r-- | bash/.bash/03-boot.bash | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bash/.bash/03-boot.bash b/bash/.bash/03-boot.bash index 34f1d9c..fd68025 100644 --- a/bash/.bash/03-boot.bash +++ b/bash/.bash/03-boot.bash @@ -9,11 +9,11 @@ if [[ $TERM == 'linux' && $(hostname) == 'dingo' ]]; then cat ~/bin/house.txt printf "\n${CYAN}Welcome back Bryson :)\n\n" - USAGE="${blue}\td:start-docked\n\tn:start-not-docked\n\tq:shutdown\n\tr:reboot\n\tb:bash\n\n${NC}" - printf "${LGREEN}What should dingo do?\n" - printf "%b" $USAGE + printf "${LGREEN}What should dingo do?\n${blue}" + echo -e '\td: start docked\n\tn: start not docked\n\tq: shutdown\n\tr: reboot\n\tl: logout\n\tb: bash\n\n' while read -rs -N 1 key; do + printf "${NC}" case $key in d) startx ;; n) nstartx.sh ;; @@ -21,11 +21,13 @@ if [[ $TERM == 'linux' && $(hostname) == 'dingo' ]]; then read -rs -N 1 key2; case $key2 in y) shutdown now ;; esac; ;; r) echo "Are you sure you want to reboot? (y/n)"; read -rs -N 1 key3; case $key3 in y) reboot ;; esac; ;; + l) logout ;; b) break ;; [h?]) echo "$USAGE";; esac - printf "${LGREEN}What should dingo do now?\n" - printf "%b" $USAGE + clear + printf "\n${red}Please try again...${NC}\n\n${LGREEN}What should dingo do now?\n${blue}" + echo -e '\td: start docked\n\tn: start not docked\n\tq: shutdown\n\tr: reboot\n\tl: logout\n\tb: bash\n\n' done fi |