X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.xinitrc;h=f3daa2a064bb00e71c8becb447e75ecada633089;hb=8635530c0d2dc87e18ad6670ce2e08bb151933ef;hp=c89d371227b015e58a2d8461f9cee59c0f170499;hpb=5152c9c954923ab9b6bb80403120652ad0bd0b91;p=dotfiles.git diff --git a/.xinitrc b/.xinitrc index c89d371..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 -onroot -quiet -center -border darkcyan -zoom auto "`$HOME/admin/prog/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 @@ -37,7 +49,9 @@ setxkbmap -layout 'us,ru' -variant ',common' -option 'grp:toggle,compose:rctrl,l # X settings: shorter beep #xset b 50 400 50 -# autorepeat +# mouse acceleration +#xset m 5/2 +# keyboard autorepeat xset r on # screen saver 5 minutes xset s 300 300 @@ -72,11 +86,9 @@ if [ -z "$WINDOW_MANAGER" ]; then export WINDOW_MANAGER fi -gpg-agent --daemon --write-env-file "$HOME"/.gnupg/agent-info \ - dbus-launch --exit-with-session \ - "$WINDOW_MANAGER" +dbus-launch --exit-with-session gpg-agent --daemon "$WINDOW_MANAGER" # Stop pulseaudio, xscreensaver and xsetbg.py pulseaudio -k xscreensaver-command -exit & -"$HOME"/admin/prog/xsetbg/xsetbg-http-stop & +"$HOME"/current/projects/xsetbg/xsetbg-http-stop &