diff options
author | Freya Murphy <freya@freyacat.org> | 2024-01-22 18:34:10 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-01-22 18:44:15 -0500 |
commit | 9bff30e23f5b974123874876db9cc57de0e67113 (patch) | |
tree | a6e28e7d1accc941ab35d0febcf689ea39740723 /.zprofile | |
parent | update mako, nvim add prolog (diff) | |
download | dotfiles-arch-9bff30e23f5b974123874876db9cc57de0e67113.tar.gz dotfiles-arch-9bff30e23f5b974123874876db9cc57de0e67113.tar.bz2 dotfiles-arch-9bff30e23f5b974123874876db9cc57de0e67113.zip |
rebase laptop
Diffstat (limited to '.zprofile')
-rw-r--r-- | .zprofile | 30 |
1 files changed, 25 insertions, 5 deletions
@@ -20,9 +20,29 @@ export GTK_THEME=Lavanda-Sea-Dark # Set terminal export TERMINAL=alacritty -# start sway only once and on the primary tty -if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then - exec sway &> .log/sway -fi +clear +echo +echo +echo "Please select an environment..." +echo "Or press any key to enter terminal" +echo "[S]way [H]yprland" +echo +echo -exec fbterm +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 |