#!/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
# 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
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