aboutsummaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-11-25 13:35:52 +0100
committerKarel Kočí <cynerd@email.cz>2018-11-25 13:35:52 +0100
commit13bb00826c7aa9fc545b9f797e5cce4120752a3f (patch)
tree559c8a94c82f390cf96441f10428bca783e0406f /profile
parent060741fdc9dd88dd0d99edffb76ae0cb8afac273 (diff)
downloadmyconfigs-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--profile16
1 files changed, 12 insertions, 4 deletions
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