JWM Tray Icons


Forum: DSL Tips and Tricks
Topic: JWM Tray Icons
started by: roberts

Posted by roberts on Dec. 04 2007,16:43
Some have complained that the icons in the tray are too small.
There are no mini-icons in DSL, one of the nice features of JWM is the ability to resize our standard set of icons.
You can edit your .jwmrc-tray file and change the height to 32

  <Tray  x="0" y="-1" height="32">

Then restart the window manager. The icons will adjust. Perhaps I should make 32 the default?

Posted by lucky13 on Dec. 04 2007,17:42
Quote
Perhaps I should make 32 the default?

That's a big tray. I pulled my icons off the .jwmrc-tray and set up a second tray that looks kind of like a NeXT/WindowMaker dock. I keep mine on autohide so it's out of the way and I don't lose any screen real estate. Here's the shot I took before removing the icons from .jwmrc-tray (so they're in both trays):
< http://lucky13linux.files.wordpress.com/2007/11/full-1.png >

Size in the .jwmrc-tray, bottom-right tray is 36 pixels (which allows 32x32 without any scaling). I don't know if you want two separate trays, though, especially since (a) you'd probably want to leave autohide=false and (b) it would accordingly rob an area of 36x horizontal and 36x vertical with autohide=false unless you set its layer low so it's (almost) always on bottom.

EDIT: I just tried my second tray with autohide=false and with both the default layer (8) and with 0 to make sure what I wrote would work. On default, I can maximize between my trays -- robbing 20-something pixels across the top and 36 vertical and horizontal from the second tray, which would be bad on a small monitor. With layer="0", I can maximize over the second tray. So that's an option to consider if you're open to a second tray (and then maybe use some of the space on the first for "quick" menus like a MyDSL menu, net menu, etc.?).

(Edited again to reflect actual size of second tray at 36 instead of 32.)

Posted by lucky13 on Dec. 04 2007,19:06
This is how it would look with a second icon tray in the top left hand corner (vertical and horizontal shots).
< http://lucky13linux.wordpress.com/jwm-tray-layouts/ >

Posted by roberts on Dec. 04 2007,19:22
It becomes a personal choice. Like the MacOS-like one I had posted in a different < thread >

Top, Bottom, Centered, Left, Right, autohide, etc...
But we are now getting away from the familiar which was the original intended purpose.

Posted by roberts on Dec. 04 2007,19:24
Quote
That's a big tray.

I quite agree. But then if one looks at the original RISCOS the bottom panel was/is huge. I also believe the default ROX has a similiar rather large bottom panel.

Posted by kerry on Mar. 04 2008,12:03
Quote (lucky13 @ Dec. 04 2007,14:06)
This is how it would look with a second icon tray in the top left hand corner (vertical and horizontal shots).
< http://lucky13linux.wordpress.com/jwm-tray-layouts/ >

the tray's are just so versatile. it's one of the main reasons i love jwm now, i even use the tray's for desktop icons. here's what mine looks like.

< http://img184.imageshack.us/img184/3791/015147ni5.png >

[CODE]<?xml version="1.0"?>

<JWM>
  <RootMenu height="32" onroot="123">
     <Program icon="run.png" label="Command">grun</Program>
     <Separator/>
     <Program icon="home.png" label="Rox">rox</Program>
     <Program icon="xterm.png" label="Terminal">x-terminal-emulator</Program>
     <Program icon="firefox.png" label="Iceweasel">iceweasel</Program>
     <Program icon="ayttm.png" label="Ayttm">ayttm</Program>
     <Program icon="synaptic.png" label="Synaptic">sudo synaptic</Program>
     <Menu icon="plan.png" label="Office">
     <Program icon="xcalc.png" label="Calculator">galculator</Program>
     <Program icon="paint.png" label="MTpaint">mtpaint</Program>
     <Program icon="abiword.png" label="Abiword">abiword</Program>
     </Menu>
     <Separator/>
     <Restart label="Restart" icon="restart.png"/>
     <Menu icon="exit.png" label="Exit">
     <Exit label="Exit" confirm="false" icon="exit.png"/>
     <Program icon="reboot.png" label="Reboot">sudo shutdown -r now</Program>
     <Program icon="shutdown.png" label="Shutdown">sudo shutdown -h now</Program>
     </Menu>
  </RootMenu>

  <Tray  valign="top" halign="center" height="22">
     <TrayButton icon="logo.png" label="JWM">root:1</TrayButton>
     <TrayButton icon="run.png">exec:grun</TrayButton>
     <TrayButton icon="xterm.png" label="Terminal">exec:x-terminal-emulator</TrayButton>
     <TrayButton icon="home.png" label="Rox-filer">exec:rox</TrayButton>
     <TrayButton icon="ayttm.png" label="Ayttm">exec:ayttm</TrayButton>
     <TrayButton icon="firefox.png" label="Iceweasel">exec:iceweasel</TrayButton>
     <Swallow name="space" width="510">space</Swallow>
     <TrayButton icon="stop.png">exec:amixer set PCM toggle</TrayButton>
     <TrayButton icon="low.png">exec:amixer set PCM 3%- unmute</TrayButton>
     <TrayButton icon="high.png">exec:amixer set PCM 3%+ unmute</TrayButton>
     <Clock width="80" format="%l:%M%P">xclock -d</Clock>
  </Tray>

  <Tray  x="5" y="-24" height="64" layer="0">
     <TrayButton icon="xcalc.png">exec:galculator</TrayButton>
     <TrayButton icon="paint.png">exec:mtpaint</TrayButton>
     <TrayButton icon="abiword.png">exec:abiword</TrayButton>
  </Tray>

  <Tray  x="-320" y="-50" height="92" layer="0">
     <TrayButton icon="xterm.png">exec:x-terminal-emulator</TrayButton>
     <TrayButton icon="home.png">exec:rox</TrayButton>
     <TrayButton icon="ayttm.png">exec:ayttm</TrayButton>
     <TrayButton icon="firefox.png">exec:iceweasel</TrayButton>
  </Tray>

  <Tray  x="-5" y="-24" height="64" layer="0">
     <TrayButton icon="off.png">exec:sleep 5;xset dpms force off</TrayButton>
  </Tray>

  <Tray  x="0" y="-1" height="22">
     <TrayButton icon="desktop.png">showdesktop</TrayButton>
     <TaskList/>
     <Dock/>
     <Pager/>
  </Tray>

  <WindowStyle>
     <Font>-*-*-*-*-*-*-12-*-*-*-*-*-*-*</Font>
     <Width>4</Width>
     <Height>15</Height>

     <Active>
        <Text>white</Text>
        <Title>#808488:#303438</Title>
        <Corner>#303438</Corner>
        <Outline>black</Outline>
     </Active>

     <Inactive>
        <Text>black</Text>
        <Title>#70849d:#2e3a67</Title>
        <Corner>#303438</Corner>
        <Outline>black</Outline>
     </Inactive>
  </WindowStyle>

  <TaskListStyle>
     <Font>-*-*-*-*-*-*-12-*-*-*-*-*-*-*</Font>
     <ActiveForeground>white</ActiveForeground>
     <ActiveBackground>#808488:#303438</ActiveBackground>
     <Foreground>black</Foreground>
     <Background>#808488:#303438</Background>
  </TaskListStyle>

  <TrayStyle>
     <Font>-*-*-*-*-*-*-12-*-*-*-*-*-*-*</Font>
     <Background>black</Background>
     <Foreground>white</Foreground>
  </TrayStyle>

  <PagerStyle>
     <Outline>black</Outline>
     <Foreground>white</Foreground>
     <Background>black</Background>
     <ActiveForeground>white</ActiveForeground>
     <ActiveBackground>black</ActiveBackground>
  </PagerStyle>

  <MenuStyle>
     <Font>-*-*-*-*-*-*-12-*-*-*-*-*-*-*</Font>
     <Foreground>black</Foreground>
     <Background>gray90</Background>
     <ActiveForeground>white</ActiveForeground>
     <ActiveBackground>#70849d:#2e3a67</ActiveBackground>
  </MenuStyle>

  <PopupStyle enabled="false">
     <Font>-*-*-*-*-*-*-12-*-*-*-*-*-*-*</Font>
     <Outline>black</Outline>
     <Foreground>black</Foreground>
     <Background>yellow</Background>
  </PopupStyle>

  <IconPath>
     $HOME/.icons
  </IconPath>
  <IconPath>
     $HOME/.backgrounds
  </IconPath>

  <Desktops count="4">
  <Background type="image">1.png</Background>
  </Desktops>

  <DoubleClickSpeed>400</DoubleClickSpeed>
  <DoubleClickDelta>2</DoubleClickDelta>
  <FocusModel>click</FocusModel>
  <SnapMode distance="10">border</SnapMode>
  <MoveMode>outline</MoveMode>
  <ResizeMode>outline</ResizeMode>

  <Key key="Up">up</Key>
  <Key key="Down">down</Key>
  <Key key="Right">right</Key>
  <Key key="Left">left</Key>
  <Key key="h">left</Key>
  <Key key="j">down</Key>
  <Key key="k">up</Key>
  <Key key="l">right</Key>
  <Key key="Return">select</Key>
  <Key key="Escape">escape</Key>

  <Key mask="A" key="Tab">nextstacked</Key>
  <Key mask="A" key="F4">close</Key>
  <Key mask="A" key="#">desktop#</Key>
  <Key mask="A" key="F1">root:1</Key>
  <Key mask="A" key="F2">exec:grun</Key>
  <Key mask="" key="Print">exec:scrot %T.png; xmessage -timeout 2 "Screen Shot Done"</Key>
  <Key mask="A" key="Print">exec:xterm -g 35x0+0+23 -e scrot -cd 5 %T.png</Key>
  <Key mask="C" key="Print">exec:xterm -g 10x0+0+23 -e scrot -sb %T.png</Key>
</JWM>

Posted by lucky13 on Mar. 04 2008,12:14
Quote
i even use the tray's for desktop icons

Heh, brilliant. No need at all for xtdesk.

Posted by kerry on Mar. 04 2008,13:16
yeap, not needed. i came up with the idea when i was using dsl, that dfm just annoyed the hell out of me. i'm back on debian know though and just took the idea further. i'm not really a icon person, but the kids want icons to click on. i also chose to keep it all in 1 file instead of including other files for convince.

on my other install i had separate setups/styles set up and just did this for commands->

     <Program icon="jwm.png" label="JWM">cp -f ~/.jwm/jwm1 ~/.jwmrc</Program>
     <Program icon="kde.png" label="KDE">cp -f ~/.jwm/jwm2 ~/.jwmrc</Program>
etc...

jwm1 would be for example stock jwm
jwm2 would be a kde style look
jwm3 would be a apple style look
jwm4 would be a gnome style look
etc...

i used names, for the example i'm just using "jwm#"
you get the point, i could change everything with just a click.[CODE]

for you it would be easier in dsl, you just change jwmrc-style, i think it was.

Posted by mikshaw on Mar. 04 2008,13:21
That's impressive, kerry.
Icons aren't my thing, but you've done something unique and attractive here.

36 mHz is a really slow processor, though =o)

Posted by kerry on Mar. 04 2008,13:43
Quote (mikshaw @ Mar. 04 2008,08:21)
That's impressive, kerry.
Icons aren't my thing, but you've done something unique and attractive here.

36 mHz is a really slow processor, though =o)

thanks, it still work in progress only installed like 4days ago. i should have put pics of the ones i did wth dsl in ram on 256mb ram.

my cpu is 450mhz, it just throttles nicely. i've got my setup so light it doesn't strain the cpu.

Posted by kerry on April 07 2008,04:58
thought i would put a up to date pic  :D

< http://img127.imageshack.us/img127/9574/185301qw3.png >

.jwmrc for your pickings

[CODE]
<?xml version="1.0"?>

<JWM>
<StartupCommand>
exec ~/.startup
</StartupCommand>

  <IconPath>
     $HOME/.icons
  </IconPath>
  <RootMenu height="20" onroot="3">
     <Program label="Command">grun</Program>
     <Separator/>
     <Program label="Rox-filer">rox</Program>
     <Program label="Terminal">xterm -g +0+0</Program>
     <Program label="Iceape">iceape</Program>
     <Program label="Synaptic">sudo synaptic</Program>
     <Menu label="Office">
     <Program label="Xcalc">xcalc</Program>
     <Program label="MTpaint">mtpaint</Program>
     <Program label="Abiword">abiword</Program>
     </Menu>
     <Separator/>
     <Restart label="Restart"/>
     <Menu label="Exit">
     <Exit label="Exit" confirm="false"/>
     <Program label="Reboot">sudo shutdown -r now</Program>
     <Program label="Shutdown">sudo shutdown -h now</Program>
     </Menu>
  </RootMenu>

  <Tray  x="0" y="0" layer="0">
     <Swallow name="xterm">xterm -e mc</Swallow>
  </Tray>

  <Tray  x="-5" y="-40" height="64" layer="0">
     <TrayButton icon="off.png">exec:sleep 5;xset dpms force off</TrayButton>
  </Tray>

  <Tray y="-1" halign="left" height="22" layer="12">
     <TrayButton label="JWM Desktop">root:3</TrayButton>
     <TrayButton label="&#8681;  ">showdesktop</TrayButton>
     <TrayButton label="Grun">exec:grun</TrayButton>
     <TrayButton label="Xterm">exec:xterm -g +0+0</TrayButton>
     <TrayButton label="Rox-filer">exec:rox</TrayButton>
     <TrayButton label="Iceape">exec:iceape</TrayButton>
  </Tray>
 
  <Tray y="-1" halign="right" height="22" layer="12">
     <TrayButton label="&#9760;">exec:amixer set PCM toggle</TrayButton>
     <TrayButton label="&#11011;">exec:amixer set PCM 5%- unmute</TrayButton>
     <TrayButton label="&#11008;">exec:amixer set PCM 5%+ unmute</TrayButton>
     <Clock width="70" format="%l:%M%P">xterm -e alsamixer</Clock>
  </Tray>

  <Tray  x="0" y="-21" height="22" layer="12">
     <TaskList/>
     <Dock/>
     <Pager/>
  </Tray>

  <WindowStyle>
  <Font>-*-dejavu sans mono-*-*-*-*-12-*-*-*-*-*-*-*</Font>
     <Width>1</Width>
     <Height>15</Height>

     <Active>
        <Text>yellow</Text>
        <Title>gray:black</Title>
        <Corner>black</Corner>
        <Outline>black</Outline>
     </Active>

     <Inactive>
        <Text>white</Text>
        <Title>gray:black</Title>
        <Corner>black</Corner>
        <Outline>black</Outline>
     </Inactive>
  </WindowStyle>

  <TaskListStyle>
  <Font>-*-dejavu sans mono-*-*-*-*-12-*-*-*-*-*-*-*</Font>
     <ActiveForeground>yellow</ActiveForeground>
     <ActiveBackground>#303438</ActiveBackground>
     <Foreground>white</Foreground>
     <Background>#303438:black</Background>
  </TaskListStyle>

  <TrayStyle>
  <Font>-*-dejavu sans mono-*-*-*-*-12-*-*-*-*-*-*-*</Font>
     <Background>black</Background>
     <Foreground>white</Foreground>
  </TrayStyle>

  <PagerStyle>
     <Outline>black</Outline>
     <Foreground>white</Foreground>
     <Background>black</Background>
     <ActiveForeground>yellow</ActiveForeground>
     <ActiveBackground>#303438</ActiveBackground>
  </PagerStyle>

  <MenuStyle>
  <Font>-*-dejavu sans mono-*-*-*-*-12-*-*-*-*-*-*-*</Font>
     <Foreground>white</Foreground>
     <Background>#303438</Background>
     <ActiveForeground>yellow</ActiveForeground>
     <ActiveBackground>#303438:black</ActiveBackground>
  </MenuStyle>

  <PopupStyle enabled="false">
  <Font>-*-dejavu sans mono-*-*-*-*-12-*-*-*-*-*-*-*</Font>
     <Outline>black</Outline>
     <Foreground>black</Foreground>
     <Background>yellow</Background>
  </PopupStyle>

  <IconPath>
     $HOME/.backgrounds
  </IconPath>
  <Desktops count="4">
  <Background type="solid">black</Background>
  </Desktops>

  <DoubleClickSpeed>400</DoubleClickSpeed>
  <DoubleClickDelta>2</DoubleClickDelta>
  <FocusModel>click</FocusModel>
  <SnapMode distance="1">none</SnapMode>
  <MoveMode>outline</MoveMode>
  <ResizeMode>outline</ResizeMode>

  <Key key="Up">up</Key>
  <Key key="Down">down</Key>
  <Key key="Right">right</Key>
  <Key key="Left">left</Key>
  <Key key="h">left</Key>
  <Key key="j">down</Key>
  <Key key="k">up</Key>
  <Key key="l">right</Key>
  <Key key="Return">select</Key>
  <Key key="Escape">escape</Key>

  <Key mask="A" key="Tab">nextstacked</Key>
  <Key mask="A" key="F4">close</Key>
  <Key mask="A" key="#">desktop#</Key>
  <Key mask="A" key="F1">root:3</Key>
  <Key mask="A" key="F2">exec:grun</Key>
  <Key mask="" key="Print">exec:scrot %T.png;xmessage -timeout 2 "screen shot done"</Key>
  <Key mask="A" key="Print">exec:xterm -g 35x1+0+0 -e scrot -cd 5 %T.png</Key>
  <Key mask="C" key="Print">exec:xterm -g 10x0+0+0 -e scrot -sb %T.png</Key>
  <Key mask="C" key="F3">exec:amixer set PCM 5%- unmute</Key>
  <Key mask="C" key="F4">exec:amixer set PCM 5%+ unmute</Key>
</JWM>

Posted by jaapz on April 07 2008,08:53
u got a very nice desktop :)
i would have chosen a different font for conky/torsmo though xD

i'll try to post my desk here too.

Posted by kerry on April 07 2008,17:39
my vision is not that great, so i prefer the clean straight fonts, i know i'm suppose to wear my glasses, but i just don't. :D
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.