How to create a jwm directory launcher? (solved)
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, 20:06, edited 1 time in total.
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:
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
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 joewing.net/programs/jwm/config.shtml if you need help understanding the JWM configuration.
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: Select all
<!-- 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>
Code: Select all
<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>
Check out joewing.net/programs/jwm/config.shtml if you need help understanding the JWM configuration.
- Attachments
-
- jwm.png
- (12.8 KiB) Downloaded 893 times
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER