You are not logged in.

#1 2015-10-07 17:06:38

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

Quirky keybinds

Do you have keybinds that maybe of interest but aren't that common?

Here's one. I set the "Menu" key to be a middle-click of the mouse on my laptop which just has left and right buttons on the touchpad.

    <keybind key="Menu">        # middle-click
      <action name="Execute"><command>xdotool click 2</command></action>
    </keybind>

I know I can press the left and right buttons on the touchpad simultaneously to achieve a middle-click but my Menu key was just lying idle.


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

Offline

#2 2015-10-07 19:13:45

ohnonot
...again
Registered: 2015-09-29
Posts: 5,554

Re: Quirky keybinds

wouldn't this do the same as the above command?

<keybind key="Menu"> 
   <action name="ShowMenu">
        <menu>client-list-combined-menu</menu>
   </action>
</keybind>

no need to call an external app, openbox can do it all by itself.


Give to COVAX! Here or here. (explanation)

Offline

#3 2015-10-07 20:39:57

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: Quirky keybinds

I don't have multimedia keys on my keyboard, so I have these so I don't have to scroll over the volume systray icon:

    <!-- Keybindings for volume control -->
    <keybind key="S-C-Prior">
      <action name="Execute">
        <execute>amixer set Master 3%+</execute>
      </action>
    </keybind>
    <keybind key="S-C-Next">
      <action name="Execute">
        <execute>amixer set Master 3%-</execute>
      </action>
    </keybind>
    <keybind key="S-C-End">
      <action name="Execute">
        <execute>amixer set Master toggle</execute>
      </action>
    </keybind>

Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#4 2015-10-07 20:43:16

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,766

Re: Quirky keybinds

Please excuse my noobishness but ...

"S-C-Prior", "S-C-Next", "S-C-End"

S=Super (WinKey)
C=Ctrl

What are: Prior, Next and End keys?


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#5 2015-10-07 20:46:37

damo
....moderator....
Registered: 2015-08-20
Posts: 6,701

Re: Quirky keybinds

Sector11 wrote:

Please excuse my noobishness but ...

"S-C-Prior", "S-C-Next", "S-C-End"

S=Super (WinKey)
C=Ctrl

What are: Prior, Next and End keys?

On my kb, `xev` tells me they are "PageUp", "PageDown" and ..erm.. "End"


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#6 2015-10-07 20:47:43

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: Quirky keybinds

^ "Page Up", "Page Down", and ..."End".  I had to `xev` for their proper names too. smile  (Simply because they're in a cluster easily reached by my middle finger with my thumb on S-C-.)

EDIT:  Ninja'd by damo.


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#7 2015-10-07 21:01:27

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,766

Re: Quirky keybinds

DUH! ops   OH OK ... didn't know about 'xev'

I have Re Pág, Av Pág and Fin ... thanks.

But they are Page up, dn and end in that order.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#8 2015-10-08 01:44:10

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

Re: Quirky keybinds

ohnonot wrote:

wouldn't this do the same as the above command?

<keybind key="Menu"> 
   <action name="ShowMenu">
        <menu>client-list-combined-menu</menu>
   </action>
</keybind>

no need to call an external app, openbox can do it all by itself.

AFAIK, keybinds don't have contexts the way mousebinds can.

Although I haven't checked, your code will limit the Menu key to providing the right-click context menu always whereas t The xdotool way will just mimic a middle mouse click in the particular context:
So,
if your mouse cursor is over a browser tab, clicking Menu will close the tab,
if your mouse cursor is over a link in most browsers, clicking Menu will open that link in a new tab (like ctrl+click),
if you've highlighted something, clicking Menu will paste the content wherever the mouse pointer happens to be (obviating the need to copy and then paste).

That is quite different from what the "client-list-combined-menu" provides.

Last edited by vasa1 (2015-10-08 11:41:01)


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

Offline

#9 2015-10-08 11:09:59

photonucleon
Thursday
From: out of that impossible sky
Registered: 2015-09-29
Posts: 297

Re: Quirky keybinds

I have my menu key set as my compose key so I cän typè âcçéñtëd chàracters. AltGr and z/x will make «those» marks. Yäy!


The servant lifted off a kind of ottoman a long peacock-blue drapery, rather of the nature of a domino, on the front of which was emblazoned a large golden sun, and which was splashed here and there with flaming stars and crescents. “You’re to be dressed as Thursday, sir,” said the valet somewhat affably.

Offline

#10 2015-10-08 16:35:09

ohnonot
...again
Registered: 2015-09-29
Posts: 5,554

Re: Quirky keybinds

vasa1 wrote:

The xdotool way will just mimic a middle mouse click in the particular context:
So,
if your mouse cursor is over a browser tab, clicking Menu will close the tab,
if your mouse cursor is over a link in most browsers, clicking Menu will open that link in a new tab (like ctrl+click),
if you've highlighted something, clicking Menu will paste the content wherever the mouse pointer happens to be (obviating the need to copy and then paste).

That is quite different from what the "client-list-combined-menu" provides.

oh, i misunderstood that.
i understand now. quite handy.


Give to COVAX! Here or here. (explanation)

Offline

#11 2015-10-10 04:25:55

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

Re: Quirky keybinds

I like my Openbox right-click root menu to open at a fixed place on my screen.

I know that nothing ever occupies coordinates 650,5 on my laptop's screen and that right-clicking there will display the root menu.

So I use this code in a script and bind it to Super+Space:

#!/bin/bash
xdotool mousemove 630 5
xdotool mousemove 650 5
sleep 0.4
xdotool click 3

My laptop is a bit old, hence the sleep.

Edit: I think this isn't needed in Openbox 3.6.1 which allows placement of menus. From the changelog of 3.6:

New <position> tag for ShowMenu action allows placing menus other than at the mouse cursor.

Last edited by vasa1 (2015-10-18 12:06:54)


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

Offline

#12 2015-10-10 10:28:44

phle
Member
From: Svedujo
Registered: 2015-09-19
Posts: 19

Re: Quirky keybinds

vasa1 wrote:

I set the "Menu" key to be a middle-click of the mouse on my laptop which just has left and right buttons on the touchpad.

    <keybind key="Menu">        # middle-click
      <action name="Execute"><command>xdotool click 2</command></action>
    </keybind>

I know I can press the left and right buttons on the touchpad simultaneously to achieve a middle-click but my Menu key was just lying idle.

Ah, thank you very much for this one!

I actually can't "click left+right simultaneously on touchpad", on this cheap-ish computer of mine, and use a separate mouse (and keyboard) when at home - but I quite frequently use it away-from-home, and have highly missed the middle-click ability!

(If I remember correctly, it uses "two-finger-tap" as middle-click in the Windows 8.1 it came shipped with.
All-in-all, this computer's touchpad is a rather annoying one, and (together with "battery: should be removable") added to the list of "things to look more into, before buying Next Computer".)


as of 2020-Jun-08:  Bunsenlabs 10 "Lithium" (RC3)  (and BunsenLabs 9.8 "Helium", and Windows 8.1) on mainly-at-home  (64-bit UEFI; defunct battery)  |  64-bit Windows 10 on carry-around  || TypeMatrix 2030 USB (blank) + "skin",  Logitech Marble Mouse USB,  Logitech B105
¤  Se vi scivolas: Mi estas ina.  ¤  (Mi provas lerni E-on, sed ankoraŭ ne majstri ĝin.) ¤

Offline

#13 2015-10-10 11:44:17

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

Re: Quirky keybinds

phle wrote:

"two-finger-tap" as middle-click

Add this line to the synclient if block in ~/.config/openbox/autostart

synclient TapButton2=2 &

wink


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

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

Offline

#14 2015-10-10 14:37:50

phle
Member
From: Svedujo
Registered: 2015-09-19
Posts: 19

Re: Quirky keybinds

Head_on_a_Stick wrote:
phle wrote:

"two-finger-tap" as middle-click

Add this line to the synclient if block in ~/.config/openbox/autostart

synclient TapButton2=2 &

wink

Yay, thank you!

It required a reboot (or maybe a log-out-log-in had been sufficient, but it's too late for that now tongue ) - just a
MENU → Preferences → Openbox → Restart
didn't do - but now I have two options for "middle-click".  big_smile


as of 2020-Jun-08:  Bunsenlabs 10 "Lithium" (RC3)  (and BunsenLabs 9.8 "Helium", and Windows 8.1) on mainly-at-home  (64-bit UEFI; defunct battery)  |  64-bit Windows 10 on carry-around  || TypeMatrix 2030 USB (blank) + "skin",  Logitech Marble Mouse USB,  Logitech B105
¤  Se vi scivolas: Mi estas ina.  ¤  (Mi provas lerni E-on, sed ankoraŭ ne majstri ĝin.) ¤

Offline

Board footer

Powered by FluxBB