diff options
author | Karel Kočí <cynerd@email.cz> | 2018-11-25 13:35:52 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-11-25 13:35:52 +0100 |
commit | 13bb00826c7aa9fc545b9f797e5cce4120752a3f (patch) | |
tree | 559c8a94c82f390cf96441f10428bca783e0406f /profile | |
parent | 060741fdc9dd88dd0d99edffb76ae0cb8afac273 (diff) | |
download | myconfigs-13bb00826c7aa9fc545b9f797e5cce4120752a3f.tar.gz myconfigs-13bb00826c7aa9fc545b9f797e5cce4120752a3f.tar.bz2 myconfigs-13bb00826c7aa9fc545b9f797e5cce4120752a3f.zip |
Cleanup and more
I am just lazy to write it up. Nobody reads it anyway.
Diffstat (limited to 'profile')
-rw-r--r-- | profile | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -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 |