Dotfiles for different machines on different branches.
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.

38 lines
1.3 KiB

  1. #!/bin/sh
  2. # Profile file. Runs on login.
  3. # Adds `~/.local/bin` and all subdirectories to $PATH
  4. export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
  5. export EDITOR="nvim"
  6. export TERMINAL="st"
  7. export BROWSER="vivaldi-stable"
  8. export READER="zathura"
  9. export FILE="ranger"
  10. export SUDO_ASKPASS="$HOME/.local/bin/tools/dmenupass"
  11. export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"
  12. export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
  13. export RTV_BROWSER="firefox"
  14. export QT_QPA_PLATFORMTHEME="qt5ct"
  15. # less/man colors
  16. export LESS=-R
  17. export LESS_TERMCAP_mb="$(printf '%b' '')"; a="${a%_}"
  18. export LESS_TERMCAP_md="$(printf '%b' '')"; a="${a%_}"
  19. export LESS_TERMCAP_me="$(printf '%b' '')"; a="${a%_}"
  20. export LESS_TERMCAP_so="$(printf '%b' '')"; a="${a%_}"
  21. export LESS_TERMCAP_se="$(printf '%b' '')"; a="${a%_}"
  22. export LESS_TERMCAP_us="$(printf '%b' '')"; a="${a%_}"
  23. export LESS_TERMCAP_ue="$(printf '%b' '')"; a="${a%_}"
  24. mpd >/dev/null 2>&1 &
  25. [ ! -f ~/.config/shortcutrc ] && shortcuts >/dev/null 2>&1
  26. echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc"
  27. # Start graphical server if i3 not already running.
  28. [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x i3 >/dev/null && exec startx
  29. # Switch escape and caps if tty:
  30. ##sudo -n loadkeys ~/.local/bin/ttymaps.kmap 2>/dev/null