Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

xinitrc 1.3 KiB

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