How to set up your hard buttons

This board posts about running linux on your webdt366
Post Reply
quotaholic
Administrator
Administrator
Posts: 569
Joined: Tue Mar 24, 2009 9:11 pm

How to set up your hard buttons

Post by quotaholic »

First make sure you have xmodmap installed. From memory its in x11-xserver-utils.

Next we need to make a map. From within your home directory:

Code: Select all

sudo nano .Xmodmap
keycode 74 = Right
keycode 73 = Left
keycode 72 = Down
keycode 71 = Up
keycode 70 = Return
keycode 69 = F14
keycode 68 = F15
keycode 67 = F16
ctl+o

to save and

ctl+x

to exit nano

Code: Select all

sudo chmod u+x .Xmodmap
then

Code: Select all

sudo nano /etc/X11/Xsession
Add the following after "set -e  ... PROGNAME=Xsession"
if [ -f $HOME/.Xmodmap ]; then
  /usr/bin/xmodmap $HOME/.Xmodmap
fi
ctl+o

to save

ctl+x to exit

Upon reboot your hardbuttons should follow the instructions layed out in the .Xmodmap file we made in the home directory. Well, as long as its executable with the chmod we used.

From there its a matter of setting the keybindings. Look at the next post for keyboard toggle to see how to do this in e17. If your on LXDE look back a page or so at the debian-lxde image post on page 3. Down the page is a example of how to set up the xml and where the needed file is to do it on.
Last edited by quotaholic on Sat Aug 22, 2009 8:37 am, edited 1 time in total.
ciur
Newbie
Newbie
Posts: 2
Joined: Mon Aug 24, 2009 5:49 am

Re: How to set up your hard buttons

Post by ciur »

Hi!
How you get keycode? Xenv, or some else?
quotaholic
Administrator
Administrator
Posts: 569
Joined: Tue Mar 24, 2009 9:11 pm

Re: How to set up your hard buttons

Post by quotaholic »

Keycodes are the easy part. The program "xev" was used to get them. I looked in the keysym database to see what keys were not being used. Assigned the F14 - F16 seeing that they would never be implemented.
Post Reply