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)

qwerty12 2010-01-10 14:37

Re: key bar for xterm
 
Quote:

Originally Posted by les_garten (Post 462378)
Hi Qole,
Thanx for the help, strange that none of these work. Any other ideas?

You want Page_Up and Page_Down.

Disregard this, sorry. I was looking at your labels...

les_garten 2010-01-10 16:21

Re: key bar for xterm
 
Quote:

Originally Posted by qwerty12 (Post 462383)
You want Page_Up and Page_Down.

Disregard this, sorry. I was looking at your labels...

Every other key press works. Is it possible that the keypress keys access an empty history file?

Ehhh, on 2nd thought I don't think so. I can push the bar a few times off the key bar and it doesn't pull it back from the history when using PageUP on the key bar, but does pull it from the hx on the Keyboard.

b666m 2010-01-25 03:34

Re: key bar for xterm
 
any chance of maybe doing a own shortcut like:

shown name: "root"
command if you click it: "sudo gainroot"

or just any other command you may use regularly?! (:

les_garten 2010-01-25 05:51

Re: key bar for xterm
 
1 Attachment(s)
Quote:

Originally Posted by b666m (Post 492925)
any chance of maybe doing a own shortcut like:

shown name: "root"
command if you click it: "sudo gainroot"

or just any other command you may use regularly?! (:

I have one just like that

in /usr/share/applications/hildon the desktop files live.

Make a copy of the one called xterm.desktop or sometging like that. I think it's osso-xterm or something.

Edit the exec line to add the command "root" without the quotes. Set the icon command to your Icon you want. Here's one I made for root.

Put your icon in the scalable and 48x48 directories.

les_garten 2010-01-25 05:54

Re: key bar for xterm
 
Quote:

Originally Posted by les_garten (Post 462491)
Every other key press works. Is it possible that the keypress keys access an empty history file?

Ehhh, on 2nd thought I don't think so. I can push the bar a few times off the key bar and it doesn't pull it back from the history when using PageUP on the key bar, but does pull it from the hx on the Keyboard.

Does nobody use the PageUp and PageDn on the key bar? I REALLY wished this would work. It would save wear and tear on my keyboard slider just to hit the up arrow.

The up arrow and down arrow are what I want to pull commands from the command history.

b666m 2010-01-25 06:00

Re: key bar for xterm
 
mhm... a copy of the rx-51 file... cursors:

Code:

    key <UP>        { type[Group1] = "ONE_LEVEL", symbols[Group1] = [        Up        ] };
    key <LEFT>        { type[Group1] = "ONE_LEVEL", symbols[Group1] = [        Left        ] };
    key <DOWN>        { type[Group1] = "ONE_LEVEL", symbols[Group1] = [        Down        ] };
    key <RGHT>        { type[Group1] = "ONE_LEVEL", symbols[Group1] = [        Right        ] };


les_garten 2010-01-25 06:59

Re: key bar for xterm
 
Quote:

Originally Posted by b666m (Post 493045)
mhm... a copy of the rx-51 file... cursors:

Code:

    key <UP>        { type[Group1] = "ONE_LEVEL", symbols[Group1] = [        Up        ] };
    key <LEFT>        { type[Group1] = "ONE_LEVEL", symbols[Group1] = [        Left        ] };
    key <DOWN>        { type[Group1] = "ONE_LEVEL", symbols[Group1] = [        Down        ] };
    key <RGHT>        { type[Group1] = "ONE_LEVEL", symbols[Group1] = [        Right        ] };


Not sure how to integrate that into the gconf2 command?

qole 2010-01-25 19:58

Re: key bar for xterm
 
les_garten: There definitely seems to be a bug here. I was able to add Page_Up and Page_Down to the rx_51 keymap (fn+up and fn+down), but I was unable to make them work on the xterm bar.

les_garten 2010-01-25 20:14

Re: key bar for xterm
 
Quote:

Originally Posted by qole (Post 494227)
les_garten: There definitely seems to be a bug here. I was able to add Page_Up and Page_Down to the rx_51 keymap (fn+up and fn+down), but I was unable to make them work on the xterm bar.

I was beginning to think it was just me! But those were on there like that from the factory, ehhh? So they never worked for anyone?

blfgomes 2010-01-25 20:52

Re: key bar for xterm
 
Quote:

Originally Posted by les_garten (Post 493084)
Not sure how to integrate that into the gconf2 command?

I have Up and Down (along with Carriage Return) mapped so that I don't have to slide the keyboard out.

Modify the lines below according to your needs:
Code:

gconftool-2 --set -t list --list-type string \
    /apps/osso/xterm/key_labels "[Tab,Esc,Dn,Up,CR]"

gconftool-2 --set -t list --list-type string \
    /apps/osso/xterm/keys "[Tab,Escape,Down,Up,KP_Enter]"



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

vBulletin® Version 3.8.8