![]() |
Re: key bar for xterm
Quote:
Disregard this, sorry. I was looking at your labels... |
Re: key bar for xterm
Quote:
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. |
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?! (: |
Re: key bar for xterm
1 Attachment(s)
Quote:
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. |
Re: key bar for xterm
Quote:
The up arrow and down arrow are what I want to pull commands from the command history. |
Re: key bar for xterm
mhm... a copy of the rx-51 file... cursors:
Code:
key <UP> { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ Up ] }; |
Re: key bar for xterm
Quote:
|
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.
|
Re: key bar for xterm
Quote:
|
Re: key bar for xterm
Quote:
Modify the lines below according to your needs: Code:
gconftool-2 --set -t list --list-type string \ |
Re: key bar for xterm
@les_garten: Page_Up and Page_Down works fine for me on the bar, always has. Have you tested them with some text editor or irssi, for example?
|
Re: key bar for xterm
Quote:
|
Re: key bar for xterm
What, wait, "Dn" and "Up" are Page Down and Page Up?
|
Re: key bar for xterm
Quote:
Works perfect for me. I was looking for Up arrow and Down arrow and that's what I got! :D |
Re: key bar for xterm
les_garten: You did NOT say you wanted up and down. You said you wanted PAGE up and PAGE down...
|
Re: key bar for xterm
Would it be possible to get cut and paste on to the bar?
This is functions that I use quite frequently so minimizing the amount of steps would be most helpful. |
Re: key bar for xterm
Quote:
|
Re: key bar for xterm
Quote:
Quote:
|
Re: key bar for xterm
Quote:
At the moment, I've just got Ctrl to be sticky (will post about that elsewhere), and mapped Fn Up/Down to do PgUp/PgDn so with Ctrl-I for tab and ESC not being that necessary (^C works in vi/vim). I now sort of no longer need the bottom bar. I tended to hide away the top bar too and should be able to get a useful fullscreen. The problem is that c+p is useful, I also tend to like to get a new terminal from time to time, and maybe pull out the status menu to switch 2G/3G, volume, BT etc. I'd just about got s2putty on the n97 working perfectly for my needs, with good gesture support to enhance the available keys (I mapped centre button of the directional pad on the left to sticky Ctrl), I got very used to swipe up as Tab in my email client for example. I've now started to get in to the n900 but I've gone downhill as far as experience for a terminal is concerned. |
Re: key bar for xterm
Quote:
EDIT: I managed to add Alt this way but how to make the Alt button sticky like the Ctrl? Code:
gconftool-2 -s /apps/osso/xterm/key_labels -t list --list-type=string "[Tab,Esc,PgUp,PgDn,Alt]" EDIT2: doesn't work like the sticky hardcoded? Ctrl |
Re: key bar for xterm
Quote:
Or did you need it for something else that this wouldn't work for? |
Re: key bar for xterm
I altered the keybar by adding a bar and greater symbol.
[Tab,Escape,bar,greater,Page_Up,Page_Down] [Tab,Esc,|,>,PgUp,PgDn] But then a strange situation - the marking arrow on right side of keybar has disappered! Just to be sure, I reboot device, but still the same. Only when I make fullscreen and then un-fullscreen does the arrow appear. Anyone can confirm this problem? Or is it only me? filed a bug: https://bugs.maemo.org/show_bug.cgi?id=10058 |
Re: key bar for xterm
I made a few 2-letter scripts to control the xterm keys bar, at:
http://sam.nipl.net/code/n900-x/ fs - fullscreen - hides the keys bar tb - toolbar - shows the keys bar kd - Tab Esc PgUp PgDn - keys default ks - Esc < > | ^ % ~ - keys shell (I use ctrl-i for tab) kc - | { } [ ] < > - keys C (ctrl-c in vim acts like Esc) kb - Esc [ ] < > | % - keys brace (or python) kv - Tab < > | dn up cr - keys virtual - (for shell with virtual kbd) |
Re: key bar for xterm
Thanks for the thanks, and thanks to everyone else who's been working on this! A bit more about my keybar scripts, I made one for each of my major use cases: shell, C, python, virtual kbd. Where I need more symbols than would fit, I got rid of Tab, Esc, PgUp, PgDn, which are less important for me, and can largely be emulated with other key presses (ctrl-I, and ctrl-C, ctrl-U, ctrl-D in vim). I commonly use ctrl-I even on a normal kbd as it seems a bit less of a stretch than Tab. I don't remember that anyone else was removing those Tab, Esc, PgUp, PgDn key bar buttons, so this is a bit different. 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! I guess I'm keen to get the keyboard working as well as possible because my laptop recently died so I've been coding a lot on the phone :)
|
Re: key bar for xterm
Quote:
|
Re: key bar for xterm
Quote:
|
Re: key bar for xterm
I couple other things, I didn't put backtick ` on my shell keybar because we can use $(foo) in bash, and that's nestable too. Here's the code from my scripts:
Code:
# fs: fullscreen Have fun! :) |
Re: key bar for xterm
hi
for the once facing the problem when beeing in real full screen (no top and bottom bar) here a short cut: get yourselfs xbindkeys and wmctrl for n900 and create a file .xbindkeysrc in your home dir. from .profile start xbindkeys and shortcut shift+enter toggles top bar on/off ---------.xbindkeysrc-------- "wmctrl -r :ACTIVE: -b toggle,fullscreen" shift + KP_Enter ---------------------------------- ps: works for all applications - great for rss reader - anyway did not figure out a place to autstart it. i tried to start from system profile but it does not work. so for now i open xterm once and it works - here it calls xbindkeys via .profile file. have fun |
Re: key bar for xterm
Quote:
Here is the code by kwotski which I used Quote:
|
Re: key bar for xterm
Friends,
Does anyone know how to add "Control C" to the bar? |
Why aren't you remapping your keys?
Quote:
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. |
Re: key bar for xterm
1 Attachment(s)
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]" |
Re: key bar for xterm
Quote:
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 :-( |
Re: key bar for xterm
1 Attachment(s)
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 Code:
fs # full screen |
Re: key bar for xterm
Quote:
|
Re: key bar for xterm
Quote:
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' |
Re: key bar for xterm
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". |
Re: key bar for xterm
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::.. |
Re: key bar for xterm
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? |
Re: key bar for xterm
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 |
All times are GMT. The time now is 02:17. |
vBulletin® Version 3.8.8