Thursday, April 24, 2008

Emulate 3 button mouse in DSL

Files....xinitrc and .xserverrc are hidden files in
/Home/dsl directory. Right click any space in the folder,
then hit options -> showhidden files -> apply -> close

copy of .xinitrc:
# put X windows programs that you want started here.
# Be sure to add at the end of each command the &

KEYTABLE="$(getknoppixparam.lua KEYTABLE)"
DESKTOP="$(getoption.lua $HOME/.desktop wm)"
ICONS="$(getoption.lua $HOME/.desktop icons)"

umix -lf .umix 2>/dev/null

[ -f .mouse_config ] && sh .mouse_config "-emulate3button" &

# For non-US Keyboards
if [ ${KEYTABLE:0:2} != "us" ]; then
xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
fi

[ "$ICONS" == "dfm" ] && /usr/bin/dfm &

if egrep -qv lowram /proc/cmdline 2>/dev/null; then
# dillo /usr/share/doc/dsl/getting_started.html &>/dev/null &
torsmo 2>/dev/null &
fi

[ -f ".$DESKTOP.inc" ] && ~/".$DESKTOP.inc"
exec "${DESKTOP:=jwm}" 2>/dev/null
____________________________________________________________

copy of .xserverrc:
exec /usr/bin/X11/Xvesa -2button -mouse "/dev/psaux" -screen 800x600x24
-shadow -nolisten tcp -I &>/dev/null
____________________________________________________________

after adding "-emulate3button" to .xinitrc...
and -2button to .xserverrc...run mouseconfig as root
exit to prompt,
logout then back in and you should be able to paste by pushing both mouse buttons
down at the same time.
If you see anything that would improve on this...please send post comment! Thanks

No comments: