cli jwm menu open

Window managers, icon programs, widgets, etc.
Post Reply
Message
Author
User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

cli jwm menu open

#1 Post by rufwoof »

One of the key codes I have assigned in my jwm configuration (in my case the default ~/.jwmrc file) is

Code: Select all

    <Key mask="" key="Menu">root:3</Key>
... where my main jwm menu is set to being root:3

Code: Select all

    <RootMenu onroot="3">
        <Program icon=......
So that pressing the MENU key on my keyboard (in my case the third button to the right of the spacebar) presents the jwm menu.

Install xdotool and you can simulate keystrokes inside a script such as

Code: Select all

#!/bin/sh
xdotool key Menu
that is the same as pressing the Menu key when that script is run. Make that script executable, assign it a icon ... etc. and then have a icon that when clicked shows the jwm menu.

As I'm using a rox panel as my main toolbar, its useful to have such a standard icon/script for the jwm menu as it them makes the rox panel more like a jwm panel. i.e. in the attached image that shows the top right corner of my screen that is the rox panel at the top of screen and where the first JWM icon when clicked shows the jwm menu ... similar to had it been a conventional jwm tray.

I have my actual jwm tray as a autohide at the bottom centre of the screen. Having the panel as a rox panel at the top of screen means that I can drag/drop icons onto those icons to open programs with the dragged/dropped file (that you can't do in jwm).
Attachments
s.png
(35.63 KiB) Downloaded 232 times
s1.png
(216.9 KiB) Downloaded 230 times

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

Re: cli jwm menu open

#2 Post by MochiMoppel »

rufwoof wrote:Install xdotool and you can simulate keystrokes inside a script such as

Code: Select all

#!/bin/sh
xdotool key Menu
that is the same as pressing the Menu key when that script is run. Make that script executable, assign it a icon ... etc. and then have a icon that when clicked shows the jwm menu.
If you need to access the menu with the mouse and you don't want to use the tray button in your autohidden tray, why then not simply click on the pinboard?

Post Reply