diff options
| author | Freya Murphy <freya@freyacat.org> | 2024-01-24 17:22:43 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2024-01-24 17:22:43 -0500 |
| commit | cf805af147dc0a8cb8c8dd89b57f2f526da2f8fc (patch) | |
| tree | b5935f57a864fb2ca836beed38b493c3f31766f8 /.zprofile | |
| parent | add new config (diff) | |
| download | dotfiles-arch-cf805af147dc0a8cb8c8dd89b57f2f526da2f8fc.tar.gz dotfiles-arch-cf805af147dc0a8cb8c8dd89b57f2f526da2f8fc.tar.bz2 dotfiles-arch-cf805af147dc0a8cb8c8dd89b57f2f526da2f8fc.zip | |
update init script and configs
Diffstat (limited to '')
| -rw-r--r-- | .zprofile | 54 |
1 files changed, 30 insertions, 24 deletions
@@ -20,29 +20,35 @@ export GTK_THEME=Lavanda-Sea-Dark # Set terminal export TERMINAL=alacritty -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 +if [ -n "$TMUX" ]; then + return +fi -case "$choice" in +clear +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" - "s") - echo "Launching sway..." - exec sway &> $HOME/.log/sway - ;; - "h") - echo "Launching Hyprland..." - exec Hyprland &> $HOME/.log/Hyprland - ;; -esac - -exec fbterm &> $HOME/.log/fbterm +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 |