Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

xinitrc 1.4 KiB

há 10 anos
há 12 anos
há 10 anos
há 12 anos
há 12 anos
há 12 anos
há 12 anos
há 12 anos
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