25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

54 satır
1.3 KiB

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