From 50cd17d8217bca3a111da641313ebea306d2ad1d Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 20 Sep 2021 22:06:51 +0000 Subject: [PATCH] xinitrc: small changes - sct 3500K - prefer `if cmd; then ...` to `cmd && ...` - use different files for stdout and stderr --- dotfiles/xinitrc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dotfiles/xinitrc b/dotfiles/xinitrc index 9731204..868caf2 100755 --- a/dotfiles/xinitrc +++ b/dotfiles/xinitrc @@ -10,15 +10,20 @@ # Dedication along with this software. If not, see # . -[ -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"