From 13bb00826c7aa9fc545b9f797e5cce4120752a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 25 Nov 2018 13:35:52 +0100 Subject: Cleanup and more I am just lazy to write it up. Nobody reads it anyway. --- profile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'profile') diff --git a/profile b/profile index 6c2dcd6..55d2ad2 100644 --- a/profile +++ b/profile @@ -14,9 +14,17 @@ export EDITOR=vim # And if we are on first terminal also automatically start x server if [ "$(tty)" = "/dev/tty1" ]; then - if which annoyme >/dev/null 2>&1; then # Check if we are using annoyme - sleep 1 # just little bit of time to give systemd to start tasks - ls ~/.annoyme/*.pid 2>/dev/null >&2 && annoyme - fi exec startx -- vt1 fi + +echo +echo "(1) i3" +echo "(2) sway" +echo -n "Select or pass to shell: " +read -r PROFILE_SELECTION +if [ "$PROFILE_SELECTION" -eq 1 ]; then + exec startx -- "vt$XDG_VTNR" +elif [ "$PROFILE_SELECTION" -eq 2 ]; then + exec sway +fi +unset PROFILE_SELECTION -- cgit v1.2.3