Notices


Reply
Thread Tools
Posts: 12 | Thanked: 18 times | Joined on Sep 2010
#71
Originally Posted by sswam View Post
I was able to fit all the major extra symbols I need for C and shell programming onto the key bars, except % for C's printf. I'm happy enough to press "Sym" a pick that off the symbols popup!
Do I understand you correctly? You are trying to fit more symbols onto the keybar on the screen (and not completely succeeding) because you do not want to have to press Meta-Symbol (by "Meta" I mean the Right-Up blue arrow) to call up the table of symbols so you can type things like % or ~ or <>[]{} or `^| etc.? Or am I missing something?

You probably already know that you can redefine your keyboard by modifying /usr/share/X11/xbd/symbols/nokia_vndr/rx-51 (you just have to go to root, and also make a backup in case anything is screwed up). It's a long config file, and the basic config starts around line 380 or 390 or something like that.

What you might not know is that you can map keys to the combination Shift+Meta+<key>. For example, the H key is mapped by default to these four characters:
h H ( (
That means: if you just press the key, it means "h"; with Shift it means "H"; with Fn it means "("; with Shift+Fn, it also means "(".

I've never figured out why Fn+<key> and Shift+Fn+<key> should map to the same thing, but that's the way it is for all of the keys ... until I changed it, of course.

So, you basically have almost 30 keys which you can combine with Shift+Meta to redefine as you like. For your % key, for example, I've redefined it to Shift+Fn+O.

The nice thing about using this remapped keyboard is that it's easy to press Shift+Fn with one finger, and then press the other key, so it's almost as easy as just hitting Shift or Meta alone --not to mention that you don't need to keep moving your fingers to the screen.

With this remapping, I actually got rid of the @ sign on the space bar and remapped it back to space bar (I find it ridiculous that I lock the Fn key to type numbers and then can't type a space). Same with : and . keys. I've put all eleven commonly used symbols `^%|~ []{}<> on the Shift+Fn key combos and still have room left over for other symbols.

Am I missing something? Is there a reason to avoid remapping Shift+Fn? I mean, it doesn't interfere with any other combos like the Shift+Ctrl keys.
 
Posts: 306 | Thanked: 106 times | Joined on Feb 2010
#72
For some reason the full screen icon is not moving to the extreme right. Is there any way i can make it do that?

I tried
Code:
gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,Page_Up,Page_Down,bar]"
Attached Images
 
__________________
------------------------------------------------------------------
Voice choppy on sip calls
Please vote for bug number 10388
 
Posts: 17 | Thanked: 11 times | Joined on Nov 2010
#73
Originally Posted by mail_e36 View Post
Friends,

Does anyone know how to add "Control C" to the bar?
Or Control-] for that matter (useful in telnet).

I have found how to bind key _sequences_:

gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,Page_Up,Page_Down,t e s t]"

Pressing that key will yield "test".

But how to get key _combinations_ ?

The obvious

gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,Page_Up, Page_Down,Control_L+bracketright]"


didn't work :-(
 

The Following User Says Thank You to alainlux For This Useful Post:
Posts: 244 | Thanked: 354 times | Joined on Jul 2010 @ Scotland
#74
Hi all,

Just came across this thread when looking for gconf options for the xterm. Exactly what I was looking for. I've used sswam's examples and stuck them all in one script, as well as adding a config of my own when using vi. It's dead easy to follow.

Everything is in the one file and you run it with a -i option to create the symlinks.

Example:

Copy the script to /usr/bin

Add your own confs.

Run the script with -i to create the symlinks:

Code:
Nokia-N900:~# setxterminalkeybar -i
Installing shortcuts for setxterminalkeybar : 
tb ... added
kd ... added
ks ... added
kc ... added
kb ... added
kv ... exists
kvi ... added
Nokia-N900:~#
Then when I want to edit a file, I just run:

Code:
fs  # full screen
kvi # keyboard for vi
vi myfile # edit the file
tb # bring back the toolbar
kd # keyboard default
Attached Files
File Type: tar setterminalkeybar.tar (10.0 KB, 178 views)

Last edited by gregoranderson; 2011-01-14 at 16:00. Reason: Added the wrong attachment - was missing fs in shortcuts!
 

The Following 8 Users Say Thank You to gregoranderson For This Useful Post:
Posts: 71 | Thanked: 88 times | Joined on Dec 2009
#75
Originally Posted by gregoranderson View Post
Hi all,

Just came across this thread when looking for gconf options for the xterm. Exactly what I was looking for. I've used sswam's examples and stuck them all in one script, as well as adding a config of my own when using vi. It's dead easy to follow.
this is so handy. thanks to you and sswam!
 
Posts: 3 | Thanked: 1 time | Joined on Feb 2011
#76
Then when I want to edit a file, I just run:

Code:
fs  # full screen
kvi # keyboard for vi
vi myfile # edit the file
tb # bring back the toolbar
kd # keyboard default
Thanks for idea.
I think sometimes more usefull to have shortcuts for this things.
So, i propose to use readline/bash magic:
Code:
bind -x '"\C-fs"':'gconftool-2 -s /apps/osso/xterm/toolbar -t bool 0' 
bind -x '"\C-tb"':'gconftool-2 -s /apps/osso/xterm/toolbar -t bool 1'
bind -x '"\C-xt"':'/usr/bin/osso-xterm'
 
Posts: 43 | Thanked: 45 times | Joined on May 2010
#77
Maybe it would be interesting for the CSSU to ship a better default (but don't change it for users that already customized) setting for this, that at least uses the unused space.

I just descovered this today and was one of those cases where "I did not know it existed, but now I can't live without it".
 
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#78
Thanks for all these nice tips and for the hint to use gconf-editor from chinook....

I got it working on my device without issues.

So, if anybody wants it, go here

Greetz,

..::J4ZZ::..

Last edited by J4ZZ; 2011-03-18 at 22:27.
 
Posts: 26 | Thanked: 3 times | Joined on Jan 2009
#79
help, after adding some special charactor, the original arrow on the most left disappears...sometimes it will apear, but most time it disappears
how can I fix this?

ps: I think there is an app in the repository to do key bar editting for me, but I can't find it now, anyone knows the name?

Last edited by leohart; 2011-03-26 at 17:44.
 
Posts: 40 | Thanked: 25 times | Joined on Sep 2011
#80
If anyone is interested, my lines :

gconftool-2 -s /apps/osso/xterm/key_labels -t list --list-type=string "[Tab,Esc,\`,|,>,~,^,%]"
gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,grave,bar,greater,asciitilde,asciicircu m,percent]"
gconftool-2 -s /apps/osso/xterm/reverse -t bool true
gconftool-2 -s /apps/osso/xterm/font_size -t int 16

I thus have ` | > ~ ^ % in a reverse colored terminal (white on black) with a 16pt font. I wish I could make it bigger but CTRL is eating a lot of space on the keybar.

Anyone knows how to remove it?

Guylhem
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:42.