#!/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
# "$OPENWINHOME"/lib/openwin-init # Default OpenWindows tools
#fi
-# EN/RU, switch on RightAlt, Compose: RightControl, Level3:RightMenu
+# EN/RU, switch on RightAlt and both Shifts,
+# Compose: RightControl, Level3:RightMenu.
setxkbmap -layout '' -variant '' -option ''
-setxkbmap -layout 'us,ru' -variant ',common' -option 'grp:toggle,compose:rctrl,lv3:menu_switch'
+setxkbmap -layout 'us,ru' -variant ',common' -option 'grp:toggle,grp:shifts_toggle,compose:rctrl,lv3:menu_switch'
+# Terminate X session on Ctrl+Alt+Backspace
+#setxkbmap -option terminate:ctrl_alt_bksp
# adjust key bindings (if any)
#[ -f "$HOME"/lib/X11/.Xmodmap ] && xmodmap "$HOME"/lib/X11/.Xmodmap