From cf805af147dc0a8cb8c8dd89b57f2f526da2f8fc Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 24 Jan 2024 17:22:43 -0500 Subject: update init script and configs --- .zprofile | 56 +++++++++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 25 deletions(-) (limited to '.zprofile') diff --git a/.zprofile b/.zprofile index 9045a22..492caa4 100644 --- a/.zprofile +++ b/.zprofile @@ -20,29 +20,35 @@ export GTK_THEME=Lavanda-Sea-Dark # Set terminal export TERMINAL=alacritty +if [ -n "$TMUX" ]; then + return +fi + clear -echo -echo -echo "Please select an environment..." -echo "Or press any key to enter terminal" -echo "[S]way [H]yprland" -echo -echo - -stty raw -echo -choice=$(dd bs=1 count=1 2> /dev/null) -stty -raw echo - -case "$choice" in - - "s") - echo "Launching sway..." - exec sway &> $HOME/.log/sway - ;; - "h") - echo "Launching Hyprland..." - exec Hyprland &> $HOME/.log/Hyprland - ;; -esac - -exec fbterm &> $HOME/.log/fbterm +printf "\t\n\t\n\t\n\t\n" +echo "\tPlease select an environment..." +echo "\t[S]way [H]yprland [T]erminal [E]xit" +printf "\t\n\t\n\t" + +while true; do + stty raw -echo + choice=$(dd bs=1 count=1 2> /dev/null) + stty -raw echo + case "$choice" in + + "s") + echo "Launching sway..." + exec sway &> $HOME/.log/sway + ;; + "h") + echo "Launching Hyprland..." + exec Hyprland &> $HOME/.log/Hyprland + ;; + "t") + exec cage -s kitty -- -o font_size=14 + ;; + "e") + exit + ;; + esac +done -- cgit v1.2.3-freya