Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

43 wiersze
1.2 KiB

  1. test "`hostname`" == "arch-aspireone" &&
  2. setxkbmap -model "acer_laptop" -layout "jp" # this line must comes first
  3. setxkbmap -option "ctrl:nocaps"
  4. xmodmap -e 'keycode 135 = Alt_R Meta_R' # menu key as alt
  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. # XDG_DESKTOP_DIR=$XDG_DIRS/Desktop
  23. # XDG_DOWNLOAD_DIR=$XDG_DIRS/Download
  24. # XDG_TEMPLATES_DIR=$XDG_DIRS/Templates
  25. # XDG_PUBLICSHARE_DIR=$XDG_DIRS/Public
  26. # XDG_DOCUMENTS_DIR=$XDG_DIRS/Document
  27. # XDG_MUSIC_DIR=$XDG_DIRS/Music
  28. # XDG_PICTURES_DIR=$XDG_DIRS/Pictures
  29. # XDG_VIDEOS_DIR=$XDG_DIRS/Videos
  30. for f in Desktop Download Templates Publicshare Documents Music Pictures Videos
  31. do
  32. export XDG_`__upper $f`_DIR=$XDG_DIRS/$f
  33. mkdir -p $XDG_DIRS/$f
  34. done
  35. #echo $XDG_DESKTOP_DIR