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
929 B

  1. test "`hostname`" == "arch-aspireone" &&
  2. setxkbmap -model "acer_laptop" -layout "jp" # this line must comes first
  3. setxkbmap -option "ctrl:nocaps"
  4. setxkbmap -option "ctrl:menu_rctrl"
  5. xmodmap -e 'keycode 101 = Alt_R Meta_R' # hiragana key as alt
  6. #xmodmap -e 'remove Lock = Caps_Lock'
  7. #xmodmap -e 'add Control = Caps_Lock'
  8. type synclient >/dev/null 2>&1 && {
  9. synclient MaxSpeed=1.6
  10. synclient MinSpeed=0.2
  11. synclient TouchpadOff=2 # tapping and scrolling are disabled
  12. }
  13. xset s 1800 # go blank after 30 min
  14. xset dpms 1810 1820 1830 # standby, suspend and off seem not to be different for my environment
  15. unset LC_MESSAGES
  16. export LANG=ja_JP.utf8
  17. export BROWSER=firefox
  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