X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.xinitrc;h=f3daa2a064bb00e71c8becb447e75ecada633089;hb=3a7b05e00b60125a724325a6da0c66ce7feb4c8e;hp=dffb5a9b7d9c2564547ef46bcd602ebbd4676ab8;hpb=6fd72eb67de65b4ce4c3cf46e3390e7b9cc4a83e;p=dotfiles.git diff --git a/.xinitrc b/.xinitrc index dffb5a9..f3daa2a 100644 --- a/.xinitrc +++ b/.xinitrc @@ -1,10 +1,22 @@ #!/bin/sh +# Add X authorization for all host names +if xauth list | grep -Fq -- -eth; then + if xauth list | grep -Fq -- -wifi; then + # Nothing to do + : + else + xauth list | sed -e 's/^/add /' -e 's/-eth/-wifi/' | xauth + fi +elif xauth list | grep -Fq -- -wifi; then + xauth list | sed -e 's/^/add /' -e 's/-wifi/-eth/' | xauth +fi + PATH="$PATH":/usr/games # Set initial background xsetroot -solid DarkCyan -xli -border darkcyan -center -onroot -quiet -zoom auto "`$HOME/current/projects/xsetbg/print-filename.py`" +xli -border darkcyan -center -onroot -quiet -zoom auto "`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`" # load .Xdefaults/.Xresources if [ -f "$HOME"/lib/X11/.Xdefaults ]; then