summaryrefslogtreecommitdiff
path: root/.zprofile
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-01-22 18:34:10 -0500
committerFreya Murphy <freya@freyacat.org>2024-01-22 18:44:15 -0500
commit9bff30e23f5b974123874876db9cc57de0e67113 (patch)
treea6e28e7d1accc941ab35d0febcf689ea39740723 /.zprofile
parentupdate mako, nvim add prolog (diff)
downloaddotfiles-arch-9bff30e23f5b974123874876db9cc57de0e67113.tar.gz
dotfiles-arch-9bff30e23f5b974123874876db9cc57de0e67113.tar.bz2
dotfiles-arch-9bff30e23f5b974123874876db9cc57de0e67113.zip
rebase laptop
Diffstat (limited to '.zprofile')
-rw-r--r--.zprofile30
1 files changed, 25 insertions, 5 deletions
diff --git a/.zprofile b/.zprofile
index 1bcd629..9045a22 100644
--- a/.zprofile
+++ b/.zprofile
@@ -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