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 Fri 18 Apr 2014, 14:47
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
How to create a jwm directory launcher? (solved)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
eden6000

Joined: 08 Apr 2007
Posts: 259

PostPosted: Tue 21 Sep 2010, 04:39    Post subject:  How to create a jwm directory launcher? (solved)  

Hi everybody, just asking, as of title, if anybody knows how to create a taskbar button that opens a sort of popup showing some customizable directories...something like the launcher that kde4 has (if someone has seen it...)
Last edited by eden6000 on Tue 21 Sep 2010, 16:06; edited 1 time in total
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Tue 21 Sep 2010, 08:56    Post subject:  

You might have to explain what you mean by "customisable" and "a popup".
I use a folder menu bound to button 2. Would it do the trick? You should be able to figure out the code.
(N.B. this is my second menu - the main one is bound to button 1, but I can't remember if that is a default in puppy these days).

This is the code for my folder menu, in /root/.jwm/jwmrc-personal:
Code:
<!-- folder menu -->

<RootMenu label="Folders" labeled="false" onroot="2" height="16">
<Program label="Filesystem">rox /</Program>
<Program label="Home folder">rox /root</Program>
<Program label="Desktop">rox /mnt/sda1/Windows/Desktop</Program>
<Separator/>
<Program label="Alister">rox "/mnt/sdb5/My Documents/Alister New"</Program>
<Program label="Gabriel">rox "/mnt/sdb5/My Documents/Gabriel"</Program>
<Program label="Nathaniel">rox "/mnt/sdb5/My Documents/Nathaniel"</Program>
<Program label="Dad">rox "/mnt/sdb5/My Documents/Dad"</Program>
<Program label="Mum">rox "/mnt/sdb5/My Documents/Mum"</Program>
</RootMenu>


As you can see, I have the menu attached to a button on a second tray at the top of my screen. This is my code for that tray in /root/.jwmrc-tray
Code:
   <Tray autohide="true" x="-100" border="0" height="24" width="0" valign="top">

      <TrayButton popup="Show Desktop" icon="desktop.xpm">showdesktop</TrayButton>
      <TrayButton popup="Home" icon="home24.png">root:2</TrayButton>
      <TrayButton popup="Console" icon="rxvt.xpm">exec:rxvt -sl 3200</TrayButton>
      <TrayButton popup="Text editor" icon="notepad_16x16.xpm">exec: defaulttexteditor</TrayButton>
      <TrayButton popup="Word Processing" icon="word_16x16.xpm">exec: swriter</TrayButton>
      <TrayButton popup="Spreadsheets" icon="excel_16x16.xpm">exec: scalc</TrayButton>
      <!-- TrayButton popup="Opera browser" icon="opera16.xpm">exec:opera</TrayButton -->
      <TrayButton popup="Internet" icon="mozicon16.xpm">exec:firefox</TrayButton>
      <TrayButton popup="E-mail" icon="oexpress_32x32.xpm">exec: defaultemail</TrayButton>
      <TrayButton popup="Drives" icon="/usr/local/lib/X11/pixmaps/drive24.png">exec: pmount</TrayButton>

   </Tray>

The root:2 button is the one - I could just as easily put it in the normal tray at the bottom of the screen, just by putting the code for that button between its <Tray></Tray> tags.

Check out [url]joewing.net/programs/jwm/config.shtml[/url] if you need help understanding the JWM configuration.
jwm.png
 Description   
 Filesize   12.8 KB
 Viewed   793 Time(s)

jwm.png


_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3219

PostPosted: Tue 21 Sep 2010, 11:50    Post subject:  

Nice!
Back to top
View user's profile Send private message 
eden6000

Joined: 08 Apr 2007
Posts: 259

PostPosted: Tue 21 Sep 2010, 16:05    Post subject:  

simply....
G R E A T!!
It's right what I was looking for!
Thanks!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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.0467s ][ Queries: 12 (0.0053s) ][ GZIP on ]