You are not logged in.

#1 2009-02-11 15:24:00

nsf
Member
From: Yekaterinburg, Russia
Registered: 2007-09-15
Posts: 160
Website

Openbox Key Editor

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. smile

Last edited by nsf (2009-02-11 15:24:56)


Bmpanel2 and obkey developer.

Offline

#2 2009-02-11 16:06:30

joeda
Member
Registered: 2008-09-14
Posts: 32

Re: Openbox Key Editor

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

#3 2009-02-11 17:10:22

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Openbox Key Editor

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

#4 2009-02-11 17:26:40

nsf
Member
From: Yekaterinburg, Russia
Registered: 2007-09-15
Posts: 160
Website

Re: Openbox Key Editor

skottish wrote:

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.


Bmpanel2 and obkey developer.

Offline

#5 2009-02-11 17:31:57

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Openbox Key Editor

obkey package deleted.

Offline

#6 2009-02-11 17:34:26

nsf
Member
From: Yekaterinburg, Russia
Registered: 2007-09-15
Posts: 160
Website

Re: Openbox Key Editor

tomk wrote:

obkey package deleted.

thanks smile


Bmpanel2 and obkey developer.

Offline

#7 2009-02-11 18:05:34

koch
Member
From: Germany
Registered: 2008-01-26
Posts: 369

Re: Openbox Key Editor

the second post within 3 minutes includind some aur-package i wann play with. nice. will try it for my notebook.

Offline

#8 2009-02-11 18:46:14

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: Openbox Key Editor

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

#9 2009-02-11 19:07:12

nsf
Member
From: Yekaterinburg, Russia
Registered: 2007-09-15
Posts: 160
Website

Re: Openbox Key Editor

DonVla wrote:

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.


Bmpanel2 and obkey developer.

Offline

#10 2009-02-11 21:23:49

btartsa
Member
Registered: 2004-07-26
Posts: 222

Re: Openbox Key Editor

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

#11 2009-02-11 21:33:15

nsf
Member
From: Yekaterinburg, Russia
Registered: 2007-09-15
Posts: 160
Website

Re: Openbox Key Editor

btartsa wrote:

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?


Bmpanel2 and obkey developer.

Offline

#12 2009-02-11 22:04:22

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: Openbox Key Editor

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

#13 2009-02-11 22:06:21

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: Openbox Key Editor

Everything works fine here. Thanks!


Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#14 2009-02-11 22:07:19

nsf
Member
From: Yekaterinburg, Russia
Registered: 2007-09-15
Posts: 160
Website

Re: Openbox Key Editor

Duologic wrote:

A question and a tip: When you save it, does it automaticaly reconfigure openbox? Should be a neat feature.

Yes, it is. I have taken code from obmenu. smile


Bmpanel2 and obkey developer.

Offline

#15 2009-02-12 11:57:36

AsA
Member
From: Milan - Italy
Registered: 2008-10-05
Posts: 40

Re: Openbox Key Editor

Great! I really like this utility, thanks for your work!!!

P.S. any hope to see in the future mousebinds handling?


WINDOS - Windos Is Not a Decent Operating System

Help me improve my english!
If you notice bad grammar in my posts, please correct me! Thanks!

Offline

#16 2009-02-12 12:07:51

nsf
Member
From: Yekaterinburg, Russia
Registered: 2007-09-15
Posts: 160
Website

Re: Openbox Key Editor

AsA wrote:

P.S. any hope to see in the future mousebinds handling?

Yes, I'm thinking about that.


Bmpanel2 and obkey developer.

Offline

#17 2009-02-12 19:32:52

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Openbox Key Editor

This is really cool, thanks for this! Makes openbox even more attractive wink

Offline

#18 2009-02-12 20:39:58

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Openbox Key Editor

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 wink


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

#19 2009-02-12 22:11:05

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: Openbox Key Editor

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

#20 2009-02-13 10:15:41

nsf
Member
From: Yekaterinburg, Russia
Registered: 2007-09-15
Posts: 160
Website

Re: Openbox Key Editor

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 wink

It's very hard to do this, since obconf is written in C and obkey is written in Python.


Bmpanel2 and obkey developer.

Offline

#21 2009-02-13 11:19:07

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Openbox Key Editor

nsf wrote:
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 wink

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

#22 2009-02-16 08:00:46

Heller_Barde
Member
Registered: 2008-04-01
Posts: 245

Re: Openbox Key Editor

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 tongue )

I love it!
cheers
Barde

EDIT: the key section is not human editable anymore though.. sad 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

#23 2009-02-16 08:07:04

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Openbox Key Editor

Was going to post in AUR does git needed to be added as a dep. ?


Mr Green

Offline

#24 2009-02-16 08:29:59

Paper Lawyer
Member
Registered: 2008-12-11
Posts: 13

Re: Openbox Key Editor

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

#25 2009-02-20 08:21:37

btartsa
Member
Registered: 2004-07-26
Posts: 222

Re: Openbox Key Editor

 <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

Board footer

Powered by FluxBB