You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

profile 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Set common directories
  2. XDG_DATA_HOME=$HOME/.local/share
  3. XDG_CACHE_HOME=$HOME/.local/cache
  4. XDG_CONFIG_HOME=$HOME/.local/etc
  5. XDG_RUNTIME_DIR=/tmp/runtime-$USER
  6. XBPS_DISTDIR=$HOME/git/void-packages
  7. DOTS_DIR=$HOME/dot
  8. GOPATH=$XDG_DATA_HOME/go
  9. CARGO_HOME=$XDG_DATA_HOME/cargo
  10. mkdir -p "$XDG_RUNTIME_DIR"
  11. # Override system variables
  12. PATH=$HOME/.local/bin:$DOTS_DIR/bin:$HOME/.nimble/bin:$CARGO_HOME/bin:$GOPATH/bin:$PATH
  13. GPG_TTY=$(tty)
  14. EDITOR=kak
  15. VISUAL=kak
  16. NO_AT_BRIDGE=1
  17. GNUPGHOME=$XDG_DATA_HOME/gnupg
  18. GPG_AGENT_INFO=$GNUPGHOME/S.gpg-agent:0:1
  19. unset LS_COLORS
  20. export \
  21. XDG_DATA_HOME XDG_RUNTIME_DIR XDG_CACHE_HOME XDG_CONFIG_HOME XDG_RUNTIME_DIR \
  22. XBPS_DISTDIR DOTS_DIR GTK2_RC_FILES TERMINAL EDITOR VISUAL GOPATH CARGO_HOME \
  23. GPG_TTY GPG_AGENT_INFO GNUPGHOME NO_AT_BRIDGE
  24. # Init sharable {ssh,gpg}-agent
  25. pgrep -xu "$(id -u)" gpg-agent || gpg-agent -q --daemon
  26. pgrep -xu "$(id -u)" ssh-agent || ssh-agent >"$XDG_CACHE_HOME/ssh-env"
  27. . "$XDG_CACHE_HOME/ssh-env"
  28. # Start X or shell
  29. if [ "$GPG_TTY" = /dev/tty1 ]; then
  30. GTK2_RC_FILES=$XDG_CONFIG_HOME/gtk-2.0/gtkrc
  31. QT_QPA_PLATFORMTHEME=gtk2
  32. TERMINAL='kitty -1'
  33. _JAVA_AWT_WM_NONREPARENTING=1
  34. _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
  35. export \
  36. _JAVA_AWT_WM_NONREPARENTING _JAVA_OPTIONS QT_QPA_PLATFORMTHEME \
  37. GTK2_RC_FILES TERMINAL
  38. exec dbus-launch sx
  39. fi
  40. exec elvish