You are not logged in.
Hi, I have written key editor for openbox.
Homepage: http://code.google.com/p/obkey
AUR: http://aur.archlinux.org/packages.php?ID=23822 or: yaourt -S obkey-git
also there is a wrong package: http://aur.archlinux.org/packages.php?ID=23821
I haven't found a way to delete it, I guess it can be done by admin or TU. Please delete it.
Last edited by nsf (2009-02-11 15:24:56)
Offline
Looks very promising, especially if you take openboxes pain-in-the-eye .xml config files into account!
Just watched the demo, gonna install it via AUR. Keep it up!
joe
Offline
Wow. Does this complain if your try to use an already existing key combination?
And yes, as far as deleting goes someone with AUR admin privileges has to delete it. The quickest way to reach them is to mail to one of the AUR mailing lists. But, the word openbox attracts people, so it may be seen before then.
Offline
Wow. Does this complain if your try to use an already existing key combination?
It shouldn't, but as it said on the obkey's page... it wasn't tested a lot. If it complains about a config file or shows it incorrectly or something else is wrong, please report it as a bug. Here or there.
Of course it is good to attach at least <keyboard> section of rc.xml, or the rc.xml itself with a description of a bug.
Also the important thing: obkey crashes formatting of rc.xml's keyboard section, but leaves everything else in place. For example if you have comment in keyboard section, it will be erased.
Offline
obkey package deleted.
Offline
the second post within 3 minutes includind some aur-package i wann play with. nice. will try it for my notebook.
Offline
hi nsf!
when i start obkey i get this error:
$ obkey
Traceback (most recent call last):
File "/usr/bin/obkey", line 40, in <module>
ob.load(path)
File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 1437, in load
self.keyboard = OBKeyboard(keyboard)
File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 1406, in __init__
kb.parse(keybind_node)
File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 1352, in parse
newa.parse(a)
File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 1299, in parse
od.parse(self, dom)
File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 869, in parse
for a in self.alts:
AttributeError: 'OCCombo' object has no attribute 'alts'
Offline
hi nsf!
when i start obkey i get this error:
$ obkey Traceback (most recent call last): File "/usr/bin/obkey", line 40, in <module> ob.load(path) File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 1437, in load self.keyboard = OBKeyboard(keyboard) File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 1406, in __init__ kb.parse(keybind_node) File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 1352, in parse newa.parse(a) File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 1299, in parse od.parse(self, dom) File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 869, in parse for a in self.alts: AttributeError: 'OCCombo' object has no attribute 'alts'
Fixed in git. Just reinstall it.
Offline
Here's another dump:
$obkey
Traceback (most recent call last):
File "/usr/bin/obkey", line 48, in <module>
ktbl = obkey_classes.KeyTable(al, ob)
File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 122, in __init__
self.apply_keybind(kb)
File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 145, in apply_keybind
accel_key, accel_mods = key_openbox2gtk(kb.key)
File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 76, in key_openbox2gtk
toksgdk = [replace_table_openbox2gtk[mod.lower()] for mod in toks[:-1]]
KeyError: u'down'
Offline
Here's another dump:
$obkey
Traceback (most recent call last):
File "/usr/bin/obkey", line 48, in <module>
ktbl = obkey_classes.KeyTable(al, ob)
File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 122, in __init__
self.apply_keybind(kb)
File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 145, in apply_keybind
accel_key, accel_mods = key_openbox2gtk(kb.key)
File "/usr/lib/python2.6/site-packages/obkey_classes.py", line 76, in key_openbox2gtk
toksgdk = [replace_table_openbox2gtk[mod.lower()] for mod in toks[:-1]]
KeyError: u'down'
I should silently skip errors in rc.xml file as openbox does, but it looks like you have broken rc.xml. Can you give me the <keyboard> section of your rc.xml?
Offline
Great thing, some nice GUI app that was missing for openbox. It fits in the row of obconf and obmenu.
But I'll be waiting until it gets more stable, need to have a stable system for school atm.
A question and a tip: When you save it, does it automaticaly reconfigure openbox? Should be a neat feature.
Keep us posted here, I'll be checking it out every now and then.
Offline
Everything works fine here. Thanks!
Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.
Offline
Offline
Great! I really like this utility, thanks for your work!!!
P.S. any hope to see in the future mousebinds handling?
Offline
This is really cool, thanks for this! Makes openbox even more attractive
Offline
Perhaps you should contact the author(s) of obconf and suggest merging of these two apps, since they both mess with the same file, it kinda makes sense
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
I would not merge these apps, it gives you more choices when there are two apps. But that is just my opinion.
edit: typo
Last edited by Duologic (2009-02-12 22:11:25)
Offline
Perhaps you should contact the author(s) of obconf and suggest merging of these two apps, since they both mess with the same file, it kinda makes sense
It's very hard to do this, since obconf is written in C and obkey is written in Python.
Offline
moljac024 wrote:Perhaps you should contact the author(s) of obconf and suggest merging of these two apps, since they both mess with the same file, it kinda makes sense
It's very hard to do this, since obconf is written in C and obkey is written in Python.
Oh, my bad, I thought obconf was python as well....
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
This is TEH awesome!! I actually wanted to write this program very soon, but now i don't have to anymore. Yay! (Except maybe port it to a sensible toolkit like Qt )
I love it!
cheers
Barde
EDIT: the key section is not human editable anymore though.. could you fix the indentation please? (i am using obkey-git 20090216-1)
Last edited by Heller_Barde (2009-02-16 08:19:46)
Offline
Was going to post in AUR does git needed to be added as a dep. ?
Mr Green I like Landuke!
Offline
Guys, would this work with LXDE? LXDE seems to put config files in different places to where openbox would normally put them (based on my very limited experience since I installed Arch with LXDE on Friday). I did spot the key bindings file whilst I was looking for the openbox right hand click menu xml file. I'll look for it again tonight and post its location on this thread, if that's useful/not known by anyone reading this thread today.
EDIT: The location of the menu.xml file is /usr/share/lxde/openbox/menu.xml but I have just read that I need to copy it to ~/.config/openbox/ and to edit the relevant line in lxde-rc.xml in the same folder to reflect the location of the copied file. That way my changes made to the menu.xml file won't be overwritten by an upgrade.
Last edited by Paper Lawyer (2009-02-16 22:56:13)
LXDE installed on an Intel E5200 (oc to 3.25ghz), Gigabyte GA-73PVM-S2 motherboard (GEForce 7100 graphics), 2GB 800mhz RAM & a 320GB WD SATA HD.
Offline
<keyboard>
<chainQuitKey>C-g</chainQuitKey>
<!-- Keybindings for desktop switching -->
<keybind key="Down-Left">
<action name="DesktopLeft">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="Down-Right">
<action name="DesktopRight">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Up">
<action name="DesktopUp">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Down">
<action name="DesktopDown">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Left">
<action name="SendToDesktopLeft">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Right">
<action name="SendToDesktopRight">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Up">
<action name="SendToDesktopUp">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Down">
<action name="SendToDesktopDown">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="W-F1">
<action name="Desktop">
<desktop>1</desktop>
</action>
</keybind>
<keybind key="W-F2">
<action name="Desktop">
<desktop>2</desktop>
</action>
</keybind>
<keybind key="W-F3">
<action name="Desktop">
<desktop>3</desktop>
</action>
</keybind>
<keybind key="W-F4">
<action name="Desktop">
<desktop>4</desktop>
</action>
</keybind>
<keybind key="W-d">
<action name="ToggleShowDesktop"/>
</keybind>
<!-- Keybindings for windows -->
<keybind key="A-F4">
<action name="Close"/>
</keybind>
<keybind key="A-Escape">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</keybind>
<keybind key="A-space">
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</keybind>
<!-- Keybindings for window switching -->
<keybind key="A-Tab">
<action name="NextWindow"/>
</keybind>
<keybind key="A-S-Tab">
<action name="PreviousWindow"/>
</keybind>
<keybind key="C-A-Tab">
<action name="NextWindow">
<panels>yes</panels>
<desktop>yes</desktop>
</action>
</keybind>
<!-- Keybindings for running applications -->
<keybind key="W-e">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Konqueror</name>
</startupnotify>
<command>kfmclient openProfile filemanagement</command>
</action>
</keybind>
</keyboard>
Offline