Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

60 lignes
1.5 KiB

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