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.
 
 
 
 
 
 

43 rivejä
977 B

  1. #!/bin/sh
  2. env > $HOME/.env.txt
  3. if [ -n "${DESKTOP_SESSION}" ]; then
  4. xmodmap -e 'keycode 135 = Alt_R Meta_R' # menu key as alt
  5. xmodmap -e 'keycode 101 = Alt_R Meta_R' # hiragana key as alt
  6. xmodmap -e 'remove Lock = Caps_Lock'
  7. xmodmap -e 'add Control = Caps_Lock'
  8. synclient VertEdgeScroll=0
  9. synclient HorizEdgeScroll=0
  10. synclient MaxTapTime=0
  11. synclient MaxSpeed=0.4
  12. synclient MinSpeed=0.2
  13. test -f "$HOME/.fehbg" &&
  14. type feh >/dev/null 2>&1 &&
  15. sh "$HOME/.fehbg"
  16. else
  17. export LC_MESSAGES=C
  18. fi
  19. # export PS1="\$ "
  20. export LC_TIME=C
  21. export TERMCAP="${TERMCAP}:vb="
  22. export HOSTNAME
  23. export BROWSER=firefox
  24. # export TMP=/tmp
  25. # export TEMP=/tmp
  26. addtopath(){
  27. for p in "$@"
  28. do
  29. echo $PATH | grep -E "^$p:|:$p:|:$p$" >/dev/null 2>&1 || PATH="$p:${PATH}"
  30. done
  31. }
  32. # export PATH="${PATH}:${HOME}/bin"
  33. addtopath ${HOME}/bin
  34. test -f "${HOME}/.pythonrc" && export PYTHONSTARTUP="${HOME}/.pythonrc"
  35. export PYTHONPATH=~/.py