maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   key bar for xterm (https://talk.maemo.org/showthread.php?t=34926)

fate 2009-12-15 15:57

Re: key bar for xterm
 
If you wanted to add it to the bar, the key name is 'bar', and several posts above tell you how to use gconftool-2 to put that on the toolbar.

If you want to map it to the hardware keys (in place of, say, the euro symbol), the keyboard remapping thread should be able to help you out there.

jebba 2009-12-23 22:49

Re: key bar for xterm
 
How about [, ], {, } ?

Also, a couple people have asked, but I haven't seen an answer. Where is a full list of the possible characters?

Thanks,

-Jeff

jebba 2009-12-23 22:52

Re: key bar for xterm
 
Quote:

Originally Posted by jebba (Post 439654)
Where is a full list of the possible characters?

Ah, answering my own question, the keymap to look up symbol names is here:

/usr/share/X11/xkb/symbols/nokia_vndr/rx-51

jebba 2009-12-23 23:03

Re: key bar for xterm
 
Here's my (lamish) script. Good if you need Spanish ó é ñ, etc and unix :)

Code:

#!/bin/sh

KEYS=`gconftool-2 --get \
        /apps/osso/xterm/keys`

KEY_LABELS=`gconftool-2 --get \
        /apps/osso/xterm/key_labels`

echo "Current settings:"
echo "KEYS $KEYS"
echo "KEY_LABELS $KEY_LABELS"

# Default
NEW_KEYS="[Tab,Escape,Page_Up,Page_Down]"
NEW_KEY_LABELS="[Tab,Esc,PgUp,PgDn]"

# Custom
# see here for a possible list:
# /usr/share/X11/xkb/symbols/nokia_vndr/rx-51
NEW_KEYS="[Tab,Escape,bar,dead_tilde,greater,dead_acute,grave]"
NEW_KEY_LABELS="[Tab,Esc,|,~,>,´,\`]"

echo "New settings:"
echo "KEYS $NEW_KEYS"
echo "KEY_LABELS $NEW_KEY_LABELS"

gconftool-2 --set -t list  --list-type string \
        /apps/osso/xterm/keys \
        $NEW_KEYS

gconftool-2 --set -t list  --list-type string \
        /apps/osso/xterm/key_labels \
        $NEW_KEY_LABELS


-Jeff
http://wiki.maemo.org/User:Jebba

jebba 2009-12-23 23:24

Re: key bar for xterm
 
A bit off topic, but to make the screen black & green:

Code:

#!/bin/sh

gconftool-2 --set --type bool \
        /apps/osso/xterm/reverse \
        false

gconftool-2 --set --type string \
        /apps/osso/xterm/background \
        "#000000"

gconftool-2 --set --type string \
        /apps/osso/xterm/foreground \
        "#00FF00"

To turn on & off the toolbar:

Code:

#!/bin/sh

SETTING=`gconftool-2 --get \
        /apps/osso/xterm/toolbar`

if [ $SETTING == "true" ]
        then NEWSETTING="false"
        else NEWSETTING="true"
fi

gconftool-2 --set --type bool \
        /apps/osso/xterm/toolbar \
        $NEWSETTING


kwotski 2009-12-23 23:37

Re: key bar for xterm
 
Quote:

Originally Posted by jebba (Post 439659)
Ah, answering my own question, the keymap to look up symbol names is here:

/usr/share/X11/xkb/symbols/nokia_vndr/rx-51

Though there are some names that work, but aren't in there. e.g. asciicircum (which is a non-dead ^).

Of course you can edit that file and then load it up with setxkbmap as has been mentioned.

Some other bits, and a sample alternate rx-51 file are in http://talk.maemo.org/showthread.php...864#post410864 and thereabouts.

I guess the set of available codes might have something to do with the files /usr/share/X11/locale/<your charset>/Compose ?

les_garten 2010-01-03 14:38

Re: key bar for xterm
 
My PgUp and PgDn don't work on the bar. Any idea why?

Code:

gconftool-2 -s /apps/osso/xterm/key_labels -t list --list-type=string "[Tab,Esc,PgUp,PgDn,|,CR,~,>,']"

gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,Page_Up,Page_Down,bar,KP_Enter,asciitilde,greater,grave]"


les_garten 2010-01-09 18:59

Re: key bar for xterm
 
Bump to see if I can get an answer to my question above.

My Page up and Page down don't work on my Key Bar, any ideas why? All the other keys work.

Thanx!

qole 2010-01-10 09:13

Re: key bar for xterm
 
les_garten:

I googled "keysyms list" and got this hit. It suggests that you should be using Prior and Next (or PageUp and PageDown).

EDIT: This page suggests KP_Prior and KP_Next might work if plain Prior and Next don't.

les_garten 2010-01-10 14:34

Re: key bar for xterm
 
Quote:

Originally Posted by qole (Post 462113)
les_garten:

I googled "keysyms list" and got this hit. It suggests that you should be using Prior and Next (or PageUp and PageDown).

EDIT: This page suggests KP_Prior and KP_Next might work if plain Prior and Next don't.

Hi Qole,
Thanx for the help, strange that none of these work. Any other ideas?


All times are GMT. The time now is 01:59.

vBulletin® Version 3.8.8