Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

61 Zeilen
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. # 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. XDG_DIRS=$HOME/.xdg-dirs
  38. for f in Desktop Download Templates Publicshare Documents Music Pictures Videos
  39. do
  40. export XDG_`__upper $f`_DIR=$XDG_DIRS/$f
  41. mkdir -p $XDG_DIRS/$f
  42. done
  43. if [ -d /etc/X11/xinit/xinitrc.d ]; then
  44. for f in /etc/X11/xinit/xinitrc.d/*; do
  45. [ -x "$f" ] && . "$f"
  46. done
  47. unset f
  48. fi