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.

xinitrc 1.2 KiB

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