Icewm Window Manager. My netbook right arrow key broke, (excited dog claw this morning __{{emoticon}}__ ). This is a M&A Companion Netbook which is rare
as hens teeth so a new keyboard or key hinge and cap are very hard to find. I would like to use the right shift key as the right arrow key.
I see a ~/.xmodmaprc text file in /home. There is no .Xmodmap text file or folder. What line insert should I use to remap the right shift key to
reuse it as a right arrow key?
keycode 62 is for right shift key on keyboard.
Code: Select all
$ xev
<snip>
KeyRelease event, serial 38, synthetic NO, window 0x2200001,
root 0xaa, subw 0x0, time 55934969, (-591,92), root:(156,119),
state 0x1, keycode 62 (keysym 0xff53, Right), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
<snip>
~/.xmodmaprc file
Code: Select all
$ cat .xmodmaprc
!----------------------------------------------------------------------
! File .xmopmaprc
!
! List of instructions for xmodmap program to modify keyboard and
! pointer device inside of X-windows. Called from .xinitrc.
!----------------------------------------------------------------------
pointer = 1 2 3 4 5
! Reverse buttons on mouse
! pointer = 3 2 1
! Convert Caps-Lock to an extra Control key
! clear lock
! keysym Caps_Lock = Control_L
Code: Select all
$ cat .xinitrc
#----------------------------------------------------------------------
# .xinitrc
#
# Created by /usr/share/antiX/lib/make-xinitrc
# on 1 June 2013 @ 16:44:58 EDT
# Please add any modifications to .xinitrc-custom and not this file.
# This file will be re-written by update-default-desktop. The
# DEFAULT_DESKTOP line will be edited by antiX-init if you select
# a desktop via the bootloader menu or a"desktop=xxx" boot parameter.
#----------------------------------------------------------------------
[ -x ~/.xinitrc-custom ] && ~/.xinitrc-custom
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
DEFAULT_DESKTOP="icewm"
DESKTOP_CODE="$(echo"${1:-$DEFAULT_DESKTOP}" | tr"[A-Z]""[a-z]")"
sdir=$HOME/.antix-session
mkdir -p $sdir
display=${DISPLAY%.[0-9]}
echo"$DESKTOP_CODE" > $sdir/desktop-code$DISPLAY
echo $$ > $sdir/xinitrc-pid:$display
case"$DESKTOP_CODE" in
rox-fluxbox)
rox --pinboard=antiX-fluxbox
exec /usr/bin/startfluxbox
;;
space-fluxbox)
spacefm --desktop &
exec /usr/bin/startfluxbox
;;
fluxbox)
exec /usr/bin/startfluxbox
;;
rox-icewm)
rox --pinboard=antiX-icewm
exec /usr/bin/icewm-session
;;
space-icewm)
spacefm --desktop &
exec /usr/bin/icewm-session
;;
icewm)
exec /usr/bin/icewm-session
;;
rox-jwm)
rox --pinboard=antiX-jwm
exec /usr/bin/jwm
;;
space-jwm)
spacefm --desktop &
exec /usr/bin/jwm
;;
jwm)
exec /usr/bin/jwm
;;
wmii)
exec wmii
;;
*)
echo"Unknown DESKTOP_CODE: $DESKTOP_CODE" >&2
echo"Setting DESKTOP_CODE to rox-icewm" >&2
DESKTOP_CODE="rox-icewm"
echo"$DESKTOP_CODE" > $HOME/.antix-session/desktop-code$DISPLAY
rox --pinboard=antiX-icewm
exec /usr/bin/icewm-session
;;
esac
Code: Select all
# xmodmap -pk |grep Right
85 0xff98 (KP_Right) 0xffb6 (KP_6) 0xff98 (KP_Right) 0xffb6 (KP_6)
114 0xff53 (Right) 0x0000 (NoSymbol) 0xff53 (Right)
Code: Select all
# xmodmap -pk |grep Shift_R
62 0xffe2 (Shift_R) 0xfe08 (ISO_Next_Group) 0xffe2 (Shift_R)0xfe08 (ISO_Next_Group)
I've been reading
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.archlinux.org/index.php/Xmodmap#Special_keys.2Fsignals"
linktext was:"https://wiki.archlinux.org/index.php/Xm ... .2Fsignals"
====================================
but
I have yet to make any sense out of it. Especially since I have a .xmodmaprc instead of .Xmodmap.
I hope I provided enough info