You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
974 B

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