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.
 
 
 
 
 
 

44 rivejä
996 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 ENV=~/.shrc
  25. # export TMP=/tmp
  26. # export TEMP=/tmp
  27. addtopath(){
  28. for p in "$@"
  29. do
  30. echo $PATH | grep -E "^$p:|:$p:|:$p$" >/dev/null 2>&1 || PATH="$p:${PATH}"
  31. done
  32. }
  33. # export PATH="${PATH}:${HOME}/bin"
  34. addtopath ${HOME}/bin
  35. test -f "${HOME}/.pythonrc" && export PYTHONSTARTUP="${HOME}/.pythonrc"
  36. export PYTHONPATH=~/.py