Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

10 anni fa
12 anni fa
10 anni fa
12 anni fa
12 anni fa
12 anni fa
12 anni fa
12 anni fa
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. # use `xev` to get keycode
  18. xmodmap -e 'keycode 101 = Alt_R Meta_R' # hiragana key as alt
  19. #xmodmap -e 'remove Lock = Caps_Lock'
  20. #xmodmap -e 'add Control = Caps_Lock'
  21. #xmodmap -e 'keycode 134 = Pointer_Button3
  22. type synclient >/dev/null 2>&1 && {
  23. synclient MaxSpeed=1.6
  24. synclient MinSpeed=0.2
  25. synclient TouchpadOff=2 # tapping and scrolling are disabled
  26. }
  27. xset s 1800 # go blank after 30 min
  28. # standby, suspend and off seem not to be different for my environment
  29. xset dpms 1810 1820 1830
  30. unset LC_MESSAGES
  31. export LANG=ja_JP.utf8
  32. export BROWSER=firefox
  33. #export DMENU_FONT='-*-dejavu sans mono-*-r-*-*-11-*-*-*-*-*-*-*'
  34. __upper(){
  35. echo $1 | tr '[:lower:]' '[:upper:]'
  36. }
  37. if [ -d /etc/X11/xinit/xinitrc.d ]; then
  38. for f in /etc/X11/xinit/xinitrc.d/*; do
  39. [ -x "$f" ] && . "$f"
  40. done
  41. unset f
  42. fi