Don't break without xset
d6e7ac9ed848ad7bdf603e57fcb0d2b222de0d46
1 parent
f0ee33d5
.zshrc
+8 -6
| 1 | 1 | ## |
|
| 2 | 2 | # cloudhead - .zshrc |
|
| 3 | 3 | # |
|
| 4 | 4 | ||
| 5 | - | xset r rate 180 40 # Sane repeat rate |
|
| 6 | - | xset -b # No bell |
|
| 7 | - | xset -dpms # Keep screen on at all times |
|
| 8 | - | xset s off # |
|
| 9 | - | xset m 7/5 0 # Pointer settings |
|
| 10 | - | setxkbmap us -variant altgr-intl |
|
| 5 | + | if xset q &>/dev/null; then |
|
| 6 | + | xset r rate 180 40 # Sane repeat rate |
|
| 7 | + | xset -b # No bell |
|
| 8 | + | xset -dpms # Keep screen on at all times |
|
| 9 | + | xset s off # |
|
| 10 | + | xset m 7/5 0 # Pointer settings |
|
| 11 | + | setxkbmap us -variant altgr-intl |
|
| 12 | + | fi |
|
| 11 | 13 | ||
| 12 | 14 | # `ls` colors |
|
| 13 | 15 | if [ -f ~/.dircolors ]; then |
|
| 14 | 16 | eval $(dircolors -b ~/.dircolors) |
|
| 15 | 17 | fi |