xinitrc: small changes

- sct 3500K
- prefer `if cmd; then ...` to `cmd && ...`
- use different files for stdout and stderr
This commit is contained in:
Lucas 2021-09-20 22:06:51 +00:00
parent fa98ce9002
commit 50cd17d821

View File

@ -10,15 +10,20 @@
# Dedication along with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
[ -r ~/.profile ] && . ~/.profile
if [ -r ~/.profile ]; then
. ~/.profile
fi
sct 4500
sct 3500
setxkbmap -layout us -variant altgr-intl -option compose:caps
xset r rate 300 75
xset b off
[ -r ~/.Xresources ] && xrdb -merge ~/.Xresources
if [ -r ~/.Xresources ]; then
xrdb -merge ~/.Xresources
fi
exec herbstluftwm -l >~/local/var/log/herbstluftwm 2>&1
: ${logdir:=~/local/var/log}
exec herbstluftwm -l >"$logdir/hlwm.out" 2>"$logdir/hlwm.err"