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 02 Oct 2014, 08:54
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 Posts_count  
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...)
Edited_time_total
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6439
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   831 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: 3220

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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0511s ][ Queries: 12 (0.0048s) ][ GZIP on ]