xinitrc 1.1 KiB

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