From 2a35d3918078a1a2d9ff0330d1d6e045e9bf6b9b Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 23 Jan 2021 11:28:28 +0000 Subject: [PATCH] xinitrc: remove legacy cruft, add sct back While there, replace `test` with `[ ... ]`. --- dotfiles/xinitrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dotfiles/xinitrc b/dotfiles/xinitrc index 134eda2..9731204 100755 --- a/dotfiles/xinitrc +++ b/dotfiles/xinitrc @@ -1,6 +1,6 @@ #!/bin/sh # env -# Written in 2019 by Lucas +# Written in 2019,2021 by Lucas # CC0 1.0 Universal/Public domain - No rights reserved # # To the extent possible under law, the author(s) have dedicated all @@ -10,15 +10,15 @@ # Dedication along with this software. If not, see # . -test -r ~/.profile && . ~/.profile +[ -r ~/.profile ] && . ~/.profile + +sct 4500 setxkbmap -layout us -variant altgr-intl -option compose:caps xset r rate 300 75 xset b off -test -d /usr/local/share/fonts/bitmaps && - xset +fp /usr/local/share/fonts/bitmaps && - xset fp rehash -test -r ~/.Xresources && xrdb -merge ~/.Xresources + +[ -r ~/.Xresources ] && xrdb -merge ~/.Xresources exec herbstluftwm -l >~/local/var/log/herbstluftwm 2>&1