.xprofile (716B)
1 #!/bin/sh 2 3 xsetroot -solid "$(sed -n 's/^\*\.background: #/#/p' ~/.Xresources)" 4 5 #[ -f ~/doc/colorprofile.icc ] && xcalib ~/doc/colorprofile.icc 6 7 eval "$(gpg-agent)" 8 if [ -z "$SSH_AUTH_SOCK" ] ; then 9 eval $(ssh-agent -s) 10 fi 11 12 setxkbmap -option ctrl:nocaps 13 14 xset -b # Disable beeps 15 xset +dpms # Energy Star features on 16 if [ "$(hostname)" = "iddqd" ]; then 17 xset s off -dpms 18 else 19 xset dpms 300 600 900 20 fi 21 22 if [ "$(uname)" = "OpenBSD" ]; then 23 xset m 2/1 0 24 else 25 xset m 1/4 0 26 fi 27 28 xset r rate 300 50 # key repeat rate ([delay in ms] [repeats per sec]) 29 30 dunst & 31 spoon >/dev/null 2>&1 & 32 if [ "$(uname)" = OpenBSD ]; then 33 xidle -timeout 600 & 34 else 35 xautolock -time 20 -locker "slock" & 36 fi