#!/bin/bash --login # this file should be in your home directory, with mode 0755: # chmod 755 ~/.Xclients # this is where your keymap is xmm=$HOME/lib/keymaps/dvorak_nc_accent.xmm set -x [ -f ~/xsession-log ] && mv -f ~/xsession-log{,.1} ( xrdb ~/.Xdefaults # if you use ssh # xmodmap $xmm # ssh-add # System startup scripts load a keymap somewhere during the login # procedure, so load the xmodmap a few times to be sure. (sleep 5; xmodmap $xmm & sleep 10; xmodmap $xmm & sleep 10; xmodmap $xmm & sleep 10; xmodmap $xmm ) & xterm & if [ -e "$HOME/.Xclients-$HOSTNAME$DISPLAY" ]; then $HOME/.Xclients-$HOSTNAME$DISPLAY else if [ -e "$HOME/.Xclients-default" ]; then $HOME/.Xclients-default else gnome-session fi; fi ssh-agent -k ) &> ~/xsession-log