Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 20 Sep 2018, 18:04
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
cli jwm menu open
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
rufwoof

Joined: 24 Feb 2014
Posts: 2538

PostPosted: Sun 15 Apr 2018, 10:28    Post subject:  cli jwm menu open  

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

Code:

    <Key mask="" key="Menu">root:3</Key>

... where my main jwm menu is set to being root:3
Code:
    <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:
#!/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).
s.png
 Description   
 Filesize   35.63 KB
 Viewed   153 Time(s)

s.png

s1.png
 Description   
 Filesize   216.9 KB
 Viewed   153 Time(s)

s1.png

Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1617
Location: Japan

PostPosted: Tue 17 Apr 2018, 05:59    Post subject: Re: cli jwm menu open  

rufwoof wrote:
Install xdotool and you can simulate keystrokes inside a script such as
Code:
#!/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?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0396s ][ Queries: 13 (0.0075s) ][ GZIP on ]