# First global user configuration export PATH="$HOME/.local/bin:$PATH" export EDITOR=vim # ct-ng configuration export CT_PREFIX_DIR='~/.local/${CT_TARGET}' export CT_LOCAL_TARBALLS_DIR="~/src/ct-ng" # Python caching export PYTHONPYCACHEPREFIX="$HOME/.cache/pycache" # Rest of the profile run only if login is from linux console [[ "$(tty)" != /dev/tty* ]] && return # Start music player daemon pgrep mpd >/dev/null || mpd ~/.config/mpd/mpd.conf # And if we are on first terminal also automatically start x server if [ "$(tty)" = "/dev/tty1" ]; then exec startx -- vt1 fi # Nix [ ! -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ] || \ . "$HOME/.nix-profile/etc/profile.d/nix.sh" # added by Nix installer 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 export XDG_CURRENT_DESKTOP=sway export MOZ_ENABLE_WAYLAND=1 exec sway fi unset PROFILE_SELECTION