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.
 
 
 
 
 
 

45 regels
1.2 KiB

  1. test -n "$DISPLAY" || return
  2. test -z "$ROXTERM_PID" || return
  3. test -z "$SSH_CONNECTION" || return
  4. test "`hostname`" == "arch-aspireone" &&
  5. setxkbmap -model "acer_laptop" -layout "jp" # this line must comes first
  6. setxkbmap -option "ctrl:nocaps,ctrl:menu_rctrl"
  7. xmodmap -e 'keycode 101 = Alt_R Meta_R' # hiragana key as alt
  8. #xmodmap -e 'remove Lock = Caps_Lock'
  9. #xmodmap -e 'add Control = Caps_Lock'
  10. type synclient >/dev/null 2>&1 && {
  11. synclient MaxSpeed=1.6
  12. synclient MinSpeed=0.2
  13. synclient TouchpadOff=2 # tapping and scrolling are disabled
  14. }
  15. xset s 1800 # go blank after 30 min
  16. xset dpms 1810 1820 1830 # standby, suspend and off seem not to be different for my environment
  17. unset LC_MESSAGES
  18. export LANG=ja_JP.utf8
  19. export BROWSER=firefox
  20. export DMENU_FONT='-*-dejavu sans mono-*-r-*-*-11-*-*-*-*-*-*-*'
  21. __upper(){
  22. echo $1 | tr '[:lower:]' '[:upper:]'
  23. }
  24. XDG_DIRS=$HOME/.xdg-dirs
  25. for f in Desktop Download Templates Publicshare Documents Music Pictures Videos
  26. do
  27. export XDG_`__upper $f`_DIR=$XDG_DIRS/$f
  28. mkdir -p $XDG_DIRS/$f
  29. done
  30. if [ -d /etc/X11/xinit/xinitrc.d ]; then
  31. for f in /etc/X11/xinit/xinitrc.d/*; do
  32. [ -x "$f" ] && . "$f"
  33. done
  34. unset f
  35. fi