You are not logged in.

#1 2015-10-27 00:25:01

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,406
Website

Keybindings? (short ones)

Trying to use
ALT + y, x, c, v  for windows placement (left, right, center, fullwidth/height)
in rc.xml.

What is the proper way to explore if this are used in some very important apps (Or perhaps even part of openbox), how to fix the possible collisions and such?

Last edited by brontosaurusrex (2015-10-27 16:18:31)

Offline

#2 2015-10-27 01:18:52

vasa1
Member
Registered: 2015-09-29
Posts: 204

Re: Keybindings? (short ones)

It'll be interesting to see the responses. AFAIK, there's no way other than by trial-and-error / by having a thorough knowledge of the shortcut keys on one's own system (and applications).

Fortunately, not many apps that I know of rely on the super key.


Using the Openbox (3.5.2) session of Lubuntu 14.04 LTS but very interested in BL :)

Offline

#3 2015-10-27 06:44:39

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,406
Website

Re: Keybindings? (short ones)

vasa1 wrote:

Fortunately, not many apps that I know of rely on the super key.

Right, the "problem" aries when the nix is run as VM and host is OSX (And this is a common case for me), where super becomes right CTRL.

btw: Wasn't there a way to set all keybindings using a 3rd party app? (And those then become global in a way that they can travel from one DE/WM to another, in my case openbox & dwm should be covered)

Last edited by brontosaurusrex (2015-10-27 15:16:56)

Offline

#4 2015-10-27 08:57:35

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Keybindings? (short ones)

brontosaurusrex wrote:

Wasn't there a way to set all keybindings using a 3rd party app?

You can try xmodmap (should be in the base system) or it's rather charming GUI version, xkeycaps.

I wouldn't use a 3rd-party keybinding program with dwm as it undermines the security and stability of the desktop *shrugs*


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#5 2015-10-27 14:18:56

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,498

Re: Keybindings? (short ones)

btw: Wasn't there a way to set all keybindings using a 3rd party app? (And those then become global in a way that they can travel from one DE/WM to another, in my case openbox & dwm should be covered)

You can use an app like xbindkeys to standardize your keybindings, but since both those window managers are capable of setting their own keybindings, it would be better to edit the configuration files and standardize the keybindings that way.

As far as your original question goes, what apps are open when you have key binding collisions? Usually the key bindings are listed in the pulldown menus.

You have a couple options (off the top of my head) -

1. like head_on_a_stick suggests, you can use xmodmap to change a key (I change my R_ALT and R_CTRL keys)

2. If your window manager supports it, you can go to a key chain for moving your windows (openbox supports them I believe, not sure about dwn) so a longer combination i.e Ctrl-m, Alt-y will move the window.

Last edited by PackRat (2015-10-27 14:20:24)


You must unlearn what you have learned.
    -- yoda

Offline

#6 2015-10-27 14:41:17

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,406
Website

Re: Keybindings? (short ones)

PackRat wrote:

As far as your original question goes, what apps are open when you have key binding collisions? Usually the key bindings are listed in the pulldown menus..

Nothing specific, but ALT + y, x, c, v for openbox window management do subjectively look like trouble waiting. However what just occurred to me that wm will probably have a priority over any app (So probably I'am making an elephant from a fly).

Offline

#7 2015-10-27 14:43:36

hhh
Meep!
Registered: 2015-09-17
Posts: 12,524
Website

Re: Keybindings? (short ones)

I'd say that using Alt plus a letter is a bad idea as almost all GTK apps that I can think of use bindings like that for menu mnemonics (Alt+v opens the View menu in many apps, for example).

Offline

#8 2015-10-27 15:16:07

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,406
Website

Re: Keybindings? (short ones)

@hhh, You are right, how about
super +  y, x, c, b

(Which will make: ALT+rmb - drag to resize && SUPER+c - to center less zexy that using ALT ..., will see)

(And I figured out how to make left cmd = super with osx host)

edit: Nope, back to alt, what I loose is various-gtk-apps view menu mostly, but I wasn't really using that in past.

Last edited by brontosaurusrex (2015-10-27 15:29:50)

Offline

#9 2015-10-27 15:22:23

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,498

Re: Keybindings? (short ones)

just occurred to me that wm will probably have a priority over any app

I believe the window with focus has the priority; I have had key binding collisions with text editors in the past.


You must unlearn what you have learned.
    -- yoda

Offline

#10 2015-10-27 15:23:42

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,406
Website

Re: Keybindings? (short ones)

PackRat wrote:

I believe the window with focus has the priority; I have had key binding collisions with text editors in the past.

My quick test shows the opposite.

Last edited by brontosaurusrex (2015-10-27 15:24:38)

Offline

#11 2015-10-27 15:33:11

vasa1
Member
Registered: 2015-09-29
Posts: 204

Re: Keybindings? (short ones)

PackRat wrote:

...
As far as your original question goes, what apps are open when you have key binding collisions? Usually the key bindings are listed in the pulldown menus.
...

Yes, but there maybe submenus sad making the process quite painful

PackRat wrote:

... 2. If your window manager supports it, you can go to a key chain for moving your windows (openbox supports them I believe, not sure about dwn) so a longer combination i.e Ctrl-m, Alt-y will move the window.

Yes, Openbox allows keychaining and that definitely is a big plus.

Caveat: these keybinds work for me on my laptop which doesn't have a separate num pad and so the keys are rather conveniently juxtaposed.

<keybind key="C-Menu">        # Snaps
  <keybind key="Left">          # LeftSnap
    <action name="Unmaximize"/>
    <action name="MoveResizeTo"><x>0</x><y>0</y><height>100%</height><width>50%</width></action>
  </keybind>
  <keybind key="Right">         # RightSnap
    <action name="Unmaximize"/>
    <action name="MoveResizeTo"><x>-0</x><y>0</y><height>100%</height><width>50%</width></action>
  </keybind>
  <keybind key="Up">            # UpSnap
    <action name="Unmaximize"/>
    <action name="MoveResizeTo"><x>--4</x><y>0</y><width>100%</width><height>50%</height></action>
  </keybind>
  <keybind key="Down">          # DownSnap
    <action name="Unmaximize"/>
    <action name="MoveResizeTo"><x>--4</x><y>-0</y><width>100%</width><height>50%</height></action>
  </keybind>
  <keybind key="5">             # 50% width, height
    <action name="Unmaximize"/>
    <action name="MoveResizeTo"><x>center</x><y>center</y><width>50%</width><height>100%</height></action>
  </keybind>
  <keybind key="W">             # CenterSnap
    <action name="MoveResizeTo"><x>center</x><y>center</y></action>
  </keybind>
</keybind>

Last edited by vasa1 (2015-10-27 15:38:54)


Using the Openbox (3.5.2) session of Lubuntu 14.04 LTS but very interested in BL :)

Offline

#12 2015-10-27 15:40:49

vasa1
Member
Registered: 2015-09-29
Posts: 204

Re: Keybindings? (short ones)

PackRat wrote:

just occurred to me that wm will probably have a priority over any app

I believe the window with focus has the priority; I have had key binding collisions with text editors in the past.

I agree with PackRat. My experience is that the application gets priority over the wm.

Last edited by vasa1 (2015-10-27 16:32:12)


Using the Openbox (3.5.2) session of Lubuntu 14.04 LTS but very interested in BL :)

Offline

#13 2015-10-27 16:14:44

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,406
Website

Re: Keybindings? (short ones)

vasa1; You agree or did you actually test?

Offline

#14 2015-10-27 16:31:32

vasa1
Member
Registered: 2015-09-29
Posts: 204

Re: Keybindings? (short ones)

brontosaurusrex wrote:

vasa1; You agree or did you actually test?

Oops!

I just tested. And keybinds in rc.xml take precedence!

    <keybind key="A-Menu">        # show desktops
      <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
    </keybind>
    <keybind key="A-F">        # show desktops
      <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
    </keybind>
    <keybind key="C-B">        # show desktops
      <action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
    </keybind>

All show the combined menu: if the application took precedence, the second keybind should have opened the file menu dropdown and the third should have bolded text. 

I take back my words! Sorry about that.


Using the Openbox (3.5.2) session of Lubuntu 14.04 LTS but very interested in BL :)

Offline

#15 2015-10-27 16:36:53

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,406
Website

Re: Keybindings? (short ones)

vasa1 wrote:

I take back my words! Sorry about that.

Nothing to be sorry about, we are all couch explorers tongue

Offline

#16 2015-10-27 17:40:11

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,498

Re: Keybindings? (short ones)

brontosaurusrex wrote:
PackRat wrote:

I believe the window with focus has the priority; I have had key binding collisions with text editors in the past.

My quick test shows the opposite.

So did a couple quick tests I did.


You must unlearn what you have learned.
    -- yoda

Offline

Board footer

Powered by FluxBB