xinitrc: remove legacy cruft, add sct back

While there, replace `test` with `[ ... ]`.
This commit is contained in:
Lucas 2021-01-23 11:28:28 +00:00
parent d5e94cd65e
commit 2a35d39180
1 changed files with 6 additions and 6 deletions

View File

@ -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
# <http://creativecommons.org/publicdomain/zero/1.0/>.
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