Notices


Reply
Thread Tools
silvermountain's Avatar
Posts: 1,359 | Thanked: 717 times | Joined on May 2009 @ ...standing right behind you...
#31
Originally Posted by zombiegavins View Post
if you are using an n900 just use the vkb and select the paste option when you have the input box open
Sorry, N810 and don't use the vkb on it.
__________________
.N810 experience: Since 6/2009
My Twenty Favorite OS2008 Applications:
AutoScan, Diablo5 Theme, Dialcentral, DragLock, EmelFM2, FlipClock, gPodder, Headphoned, Knots 2, Maemo Mapper, mPlayer, openNTPD, OpenSSH, Panucci, Personal Launcher, QuickNote, Seqretary, SlideLock, Telescope, YellowNotes
 
silvermountain's Avatar
Posts: 1,359 | Thanked: 717 times | Joined on May 2009 @ ...standing right behind you...
#32
lol nevermind..i just found 'paste' in the pull down menu..guess the lack of a) sleep and b) no ctrl-v support threw me a blonde moment...
__________________
.N810 experience: Since 6/2009
My Twenty Favorite OS2008 Applications:
AutoScan, Diablo5 Theme, Dialcentral, DragLock, EmelFM2, FlipClock, gPodder, Headphoned, Knots 2, Maemo Mapper, mPlayer, openNTPD, OpenSSH, Panucci, Personal Launcher, QuickNote, Seqretary, SlideLock, Telescope, YellowNotes
 
Posts: 267 | Thanked: 183 times | Joined on Jan 2010 @ Campinas, SP, Brazil
#33
Originally Posted by ag2 View Post
To be more precise:

x-term:

Menu -> Tools -> Settings -> Toolbar shortcut -> New

Title: Bar
Value: bar
(...)
Sorry, I got a bit confused here. Only to clarify: these steps are not for osso-xterm for the N900, right? There is no "Tools" in my xterm menu, only "New", "Font", "Restart", "Restart and Clear".

Is there a way to apply this recipe to osso-xterm for the N900 that doesn't need fiddling with text-mode resource files? I've found /usr/share/gconf/schemas/osso-xterm.schemas that seems to have the configuration for the xterm 'soft keys', but I'd rather avoid to use it.
__________________
My nickname on freenode is ptl, that is, the consonants of my nickname here. Kind of a long story.
 
Posts: 267 | Thanked: 183 times | Joined on Jan 2010 @ Campinas, SP, Brazil
#34
I just figured out how to do it in the n900 with gconftool-2.

In the terminal, as user (not root):
  1. First, get the xml schema of the current configuration for xterm:
    Code:
    gconftool-2 --dump /schemas/apps/osso/xterm > /tmp/xterm.dump
  2. Make a backup of this dump. Save it somewhere, so that you can get back if you screw up:
    Code:
    cp /tmp/xterm.dump /home/user/MyDocs/xterm-keys.dump
  3. Then, using your preferred text editor (mine is vim, but can be leafpad, nano, etc.), open the dump file:
    Code:
    vim /tmp/xterm.dump
  4. You'll find a xml section (way under "key_labels") containing the default values for the labels of the keys. It ends in PgDn:
    Code:
                       <value>
                          <string>PgUp</string>
                        </value>
                        <value>
                          <string>PgDn</string>
                        </value>
                    </list>
                  </value>
  5. Add your values there (try to keep it short, because it uses space on the screen):
    Code:
                       <value>
                          <string>PgUp</string>
                        </value>
                        <value>
                          <string>PgDn</string>
                        </value>
                        <value>
                          <string>Pipe</string>
                        </value>
                        <value>
                          <string>&gt;</string>
                        </value>
                    </list>
                  </value>
  6. The next xml section has the key values, and you have to add accordingly. In this example, from:
    Code:
                        <value>
                          <string>Page_Up</string>
                        </value>
                        <value>
                          <string>Page_Down</string>
                        </value>
                    </list>
                  </value>
  7. We add:
    Code:
                        <value>
                          <string>Page_Up</string>
                        </value>
                        <value>
                          <string>Page_Down</string>
                        </value>
                        <value>
                          <string>bar</string>
                        </value>
                        <value>
                          <string>greater</string>
                        </value>
                    </list>
                  </value>
  8. Notice that these symbols have to be in their correct case. The symbol for pipe ("|") is bar, all lowercase, and the symbol for greater (">") is greater, all lowercase.
  9. Save the file then exit.
  10. Now, load the modified schema:
    Code:
    gconftool-2 --load /tmp/xterm.dump
  11. Voilą! You'll have your brand new symbols:
__________________
My nickname on freenode is ptl, that is, the consonants of my nickname here. Kind of a long story.

Last edited by Patola; 2010-05-16 at 14:09. Reason: changed "Grtr" label to be ">"
 

The Following 9 Users Say Thank You to Patola For This Useful Post:
Posts: 77 | Thanked: 35 times | Joined on Feb 2010 @ AZ
#35
Originally Posted by Patola View Post
I just figured out how to do it in the n900 with gconftool-2.
Can this be done via ssh?
 
Posts: 11 | Thanked: 0 times | Joined on May 2010
#36
Originally Posted by Patola View Post
I just figured out how to do it in the n900 with gconftool-2.
Thanks for this!
This is exactly what I was missing on my xterm, the Pipe
and '>' symbol. :-)
 
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#37
ok let me first say I am not a programmer. I am trying to change the keys on the xterm using gconf and I have read the above posts. I did the dump and the backup etc.

what I don't understand, is under the "keys" section (if I am interpreting this correctly) is the actual specification of the key value to be added to the virtual terminal (the one line on the bottom of the screen).

then the "key_labels" section somehow maps the actual keys that you have specified to the names you want ie, what you will actually press.

but how do I know the names to input for the keys. for instance I read the value to input for the pipe "|" is bar, and the value to input for the ">" is greater.

but where are these values coming from? for instance I want to add both the forward slash "/" and the dash "-" to the menu.

where do I find their values? and how come I don't see Ctrl defined under keys or as a key_values but obviously it is there on my screen?

Last edited by extendedping; 2010-07-07 at 23:24.
 
grog's Avatar
Posts: 546 | Thanked: 85 times | Joined on Feb 2008 @ Winnipeg, Canada
#38
Originally Posted by Patola View Post
I just figured out how to do it in the n900 with gconftool-2.
Thanks again for this. What I can't figure out are what the key values for a few other keys I'd like to have, namely brackets ("[" & "]") & the tilde ("~"). The buttons show up fine but I can't figure out what gconf expects for a value. If I could find out where you figured out that pipe = bar that might help, but I can't even find that .

TX
__________________
GROG!
N900 | ZAGG Body Armour | 16Gb A-DATA micro-sd
N810 | 2 x Patriot 8gb mini-SD | Boxwave Crystal Clear SS | Black Aluminum case | OTG dongle
N800 | 2 x 8gb OCX SD | Boxwave Anti-glare SS | PDAir book-style case
Holux M-1200 bluetooth GPS | iGo 4-row bluetooth keyboard | Linksys USB 10/100 ethernet | Plantronics Voyager 855 BT Headset
 
Posts: 208 | Thanked: 220 times | Joined on Apr 2010
#39
Originally Posted by grog View Post
Thanks again for this. What I can't figure out are what the key values for a few other keys I'd like to have, namely brackets ("[" & "]") & the tilde ("~"). The buttons show up fine but I can't figure out what gconf expects for a value. If I could find out where you figured out that pipe = bar that might help, but I can't even find that .

TX
Use this
http://wiki.linuxquestions.org/wiki/List_of_keysyms
So [ is "bracketleft" and so on..
__________________
With Linux-powered N900..ANYTHING is possible
 

The Following 2 Users Say Thank You to techie For This Useful Post:
Zas's Avatar
Posts: 196 | Thanked: 113 times | Joined on Jun 2010 @ Finland
#40
[ is "bracketleft" and ] is "bracketright". ~ should be "asciitilde".
 

The Following 2 Users Say Thank You to Zas For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:53.