You are not logged in.
Pages: 1
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
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.
Offline
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
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?
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Please excuse my noobishness but ...
"S-C-Prior", "S-C-Next", "S-C-End"
S=Super (WinKey)
C=CtrlWhat 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
^ "Page Up", "Page Down", and ..."End". I had to `xev` for their proper names too. (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
DUH! :8 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.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
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
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
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.
Offline
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
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.
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
"two-finger-tap" as middle-click
Add this line to the synclient if block in ~/.config/openbox/autostart
synclient TapButton2=2 &
Offline
phle wrote:"two-finger-tap" as middle-click
Add this line to the synclient if block in ~/.config/openbox/autostart
synclient TapButton2=2 &
It required a reboot (or maybe a log-out-log-in had been sufficient, but it's too late for that now ) - just a
MENU → Preferences → Openbox → Restart
didn't do - but now I have two options for "middle-click".
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
Pages: 1