WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help with JWM setup and advice?  (Read 3725 times)

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Help with JWM setup and advice?
« on: July 07, 2009, 07:44:05 AM »
Been trying to hook-up JWM, as unlike the other WM's it at least works right.
so, a few questions regarding JWM

1) How to enable menu/tray etc transperancy??

2) How to know where a color chart is showing colors jwm can use
for example "gold" is one, but "bronze" is not, is there a list somewhere?

3) How to have "rounded" corners, etc?

4) How to remove or disable WBAR?
removing it from .xsession it still pops back up when restarting jwm.

This is what I have right now, just playing around-JWM is the 1st pic
( http://multidistro.com/tinycore-shots/tc-scrnshots.html )

so, any ideas on above please help!
thanks

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: Help with JWM setup and advice?
« Reply #1 on: July 07, 2009, 09:00:43 AM »
JWM is a fast and light window manager....this is accomplished partly by not including much in the way of visual candy.  I don't think rounded corners and transparency are features of JWM, but you could look over the doc at http://joewing.net/programs/jwm/config.shtml

As far as colors go, I assume it uses the regular X color names, which are found in /usr/share/X11/rgb.txt
There is a gui application called xcolors, which shows you these colors along with their names, although it's not in TC base and apparently not in the Xorg extension for some reason.

Wbar is also started by another process (when installing extensions, i think).  You'll need to use the boot option "noicons" to keep it away.

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Re: Help with JWM setup and advice?
« Reply #2 on: July 07, 2009, 09:15:52 AM »
 ;D
Thanks mikshaw:)
Actually I just read new version of jwm can do eye-candy, but you gotta have xorg.tce(which I don't want)
it looks pretty good now, just wish I could round the jwmtray corners, etc

Thanks for the colors info, I will check it out.

Offline linus72

  • Full Member
  • ***
  • Posts: 196
  • Damn it Jim!
Re: Help with JWM setup and advice?
« Reply #3 on: July 07, 2009, 10:27:05 AM »
Well, I ve fiddled with it some more; 1st pic here
( http://multidistro.com/tinycore-shots/tc-scrnshots.html )

Now, the problem is the clock is unreadable:(
How do I change clock text to black or white?

Here's GoldDragon.thm

Code: [Select]
<JWM>
<!-- Visual Styles -->
<!-- Gold Dragon -->

<WindowStyle>
<Font antialias="false">smoothansi</Font>
<Width>2</Width>
<Height>16</Height>
<Active>
<Text>white</Text>
<Title>darkorange:grey13</Title>
<Corner>black</Corner>
<Outline>dark goldenrod</Outline>
</Active>
<Inactive>
<Text>white</Text>
<Title>grey20:grey0</Title>
<Corner>black</Corner>
<Outline>gold</Outline>
</Inactive>
</WindowStyle>

<TaskListStyle>
<Font antialias="false">smoothansi</Font>
<ActiveForeground>white</ActiveForeground>
<ActiveBackground>orange:grey13</ActiveBackground>
<Foreground>grey44</Foreground>
<Background>grey20:grey0</Background>
</TaskListStyle>

<!-- Additional TrayStyle attribute: insert -->

<TrayStyle>
<Font antialias="false">smoothansi</Font>
<Background>dark goldenrod</Background>
<Foreground>chocolate</Foreground>
</TrayStyle>

<PagerStyle>
<Outline>grey66</Outline>
<Foreground>black</Foreground>
<Background>gold</Background>
<ActiveForeground>black</ActiveForeground>
<ActiveBackground>grey44</ActiveBackground>
</PagerStyle>

<MenuStyle>
<Font antialias="false">smoothansi</Font>
<Foreground>black</Foreground>
<Background>dark goldenrod</Background>
<ActiveForeground>chocolate:darkorange</ActiveForeground>
<ActiveBackground>grey13</ActiveBackground>
</MenuStyle>

<PopupStyle>
<Font antialias="false">smoothansi</Font>
<Outline>grey22</Outline>
<Foreground>black</Foreground>
<Background>grey13</Background>
</PopupStyle>

</JWM>

and here's jwm-tray

Code: [Select]
<JWM>
   <!-- Additional tray attributes: autohide, width, border, layer, layout -->
   <Tray halign="center" valign="bottom" height="17" width="777">

     <!-- Additional TaskList attribute: maxwidth -->
     <TaskList/>

     <!-- Additional TrayButton attribute: label -->
     <TrayButton label="_">showdesktop</TrayButton>
     <TrayButton label="$">exec:sudo aterm</TrayButton>

      <!-- Additional Pager attributes; width, height -->
      <Pager/>
      <!-- Additional Swallow attribute: height -->
      <Swallow name="watcher" width="0"> watcher </Swallow>

      <Clock format="%a %d %b %k:%M"></Clock>

      <Dock/>

    
   </Tray>
</JWM>
#<TrayButton label="X">exec:exittc</TrayButton>

I commented out the x button, but left it there so I wouldn't forget it:)
here's jwmrc

Code: [Select]
<?xml version="1.0"?>

<JWM>

   <!-- The root menu, if this is undefined you will not get a menu. -->
   <!-- Additional RootMenu attributes: onroot, labeled, label -->
   <RootMenu height="12" onroot="123">

<Program label="Gimp2">exec /usr/local/bin/gimp-2.6</Program>
<Program label="Opera (browser-only)">exec /usr/local/bin/opera -nomail -nolirc</Program>
<Program label="Xfe">exec sudo /usr/local/bin/xfe</Program>
<Program label="Xfw">exec sudo /usr/local/bin/xfw</Program>
<Separator/>

<Include>/usr/local/tce.menu/menu</Include>

<Separator/>
<Program label="Apps Browser"> exec appbrowser </Program>
<Program label="Control Panel"> exec cpanel </Program>
 <Separator/>
<Menu label="XShells">
  <Program label="Dark"> exec aterm +tr -T "sh" </Program>
  <Program label="Light"> exec aterm +tr -bg white -fg black -cr blue -T "sh" </Program>
  <Program label="Transparent"> exec aterm -tr -tr -T "sh" </Program>
  <Menu label="Root Access">
    <Program label="Dark"> exec aterm +tr -cr red -T "Root Shell" -e sudo -s </Program>
    <Program label="Light"> exec aterm +tr -bg white -fg black -cr red -T "Root Shell" -e sudo -s  </Program>
    <Program label="Transparent"> exec aterm -tr -tr -cr red -T "Root Shell" -e sudo -s </Program>
  </Menu>
</Menu>
 <Separator/>
<Menu label="Tools">
  <Program label="Add to Bootlocal"> exec /usr/bin/add2file /opt/bootlocal.sh</Program>
  <Program label="Add to Filetool"> exec /usr/bin/add2file /opt/.filetool.lst</Program>
  <Program label="Add to Xfiletool"> exec /usr/bin/add2file /opt/.xfiletool.lst</Program>
  <Program label="Screenshot"> exec /usr/bin/screenshot.sh </Program>
  <Program label="Picture Viewer"> exec /usr/bin/flpicsee  </Program>
  <Program label="EXT Swapfile"> exec /usr/bin/swapfile  </Program>
  <Program label="Make tclocal File/Directory"> exec aterm +tr +sb -T "TC Make tclocal" -e sudo  /usr/bin/mktclocal </Program>
  <Program label="Make Crypto Home File"> exec aterm +tr +sb -T "TC Make Crypto Home" -e sudo  /usr/bin/mkcryptohome </Program>
  <Program label="TC Terminal Server"> exec aterm +tr +sb -T "TC Terminal Server" -e sudo  /usr/bin/tc-terminal-server </Program>
  <Program label="Time Via Internet Time Server"> exec sudo /usr/bin/getTime.sh </Program>
  <Program label="Top"> exec  aterm +tr +sb -T "Top" -e /usr/bin/top </Program>
  <Program label="Vi"> exec aterm +tr -T "Vi" -e vi</Program>
  <Program label="Xkill"> exec /usr/bin/xkill </Program>
  <Program label="Xvesa Setup"> exec aterm +tr +sb -T "X Setup" -e /usr/bin/xsetup.sh  </Program>
</Menu>
 
 <Separator/>

  <Program label="Help"> exec help /usr/share/doc/tc/help.html</Program>
  <Program label="Run Command"> exec flrun</Program>
  <Separator/>
  <Menu label="Exit/Restart">
   <Program label="Restart Wbar"> exec wbar.sh</Program>
   <Restart label="Restart Window Manager"/>
   <Program label="Exit Options"> exec exittc</Program>
  </Menu>
 </RootMenu>


<Include>./.jwmrc-tray</Include>

<Include>./.jwmrc-theme</Include>

   <IconPath>
      /usr/local/tce.icons
   </IconPath>

   <!-- Virtual Desktops -->
   <!-- Desktop tags can be contained within Desktops for desktop names. -->
   <Desktops count="4">

      <!-- Default background. Note that a Background tag can be
           contained within a Desktop tag to give a specific background
           for that desktop.
          
           Valid types: solid gradient image tile command
       -->
<Background type="image">/opt/.backgrounds/bronze.jpg</Background>

   </Desktops>

   <!-- Double click speed (in milliseconds) -->
   <DoubleClickSpeed>400</DoubleClickSpeed>

   <!-- Double click delta (in pixels) -->
   <DoubleClickDelta>2</DoubleClickDelta>

   <!-- The focus model (sloppy or click) -->
   <FocusModel>click</FocusModel>

   <!-- The snap mode (none, screen, or border) -->
   <SnapMode distance="10">border</SnapMode>

   <!-- The move mode (outline or opaque) -->
   <MoveMode>outline</MoveMode>

   <!-- The resize mode (outline or opaque) -->
   <ResizeMode>outline</ResizeMode>
  
<Include>./.jwmrc-keys</Include>

</JWM>

Note that the menu entry's for xfe/xfw are "sudo"
and the tray aterm is also sudo

Any advice on fixing the clock text is appreciated
thanks
« Last Edit: July 07, 2009, 11:06:18 AM by linus72 »

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: Help with JWM setup and advice?
« Reply #4 on: July 07, 2009, 11:47:34 PM »
Quote from: jwm doc
The ClockStyle tag controls the look of clocks on the tray. Within this tag the following tags are supported:

    * Font
      The font to use. See Fonts.
    * Background
      The background color. See Colors.
    * Foreground
      The text color. See Colors.

 Colors for various parts of JWM are specified within specific tags (described above). Colors may either be hex triplets in RGB format (for example, #FF0000 is red) or by a name recognized by the X server. For components that support gradients, two colors may be specified separated by a colon.

It would most likely fit best in .jwmrc-tray, but .jwmrc should work too.
I think it would be something like this:
Code: [Select]
<ClockStyle Background="black" Foreground="white"></ClockStyle>

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Help with JWM setup and advice?
« Reply #5 on: July 17, 2009, 05:32:40 PM »
I believe "rounded corners" are available from jwm snapshots:
http://joewing.net/programs/jwm/snapshots/

10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Help with JWM setup and advice?
« Reply #6 on: July 20, 2009, 02:20:17 AM »
The latest jwm-456 cut, July 19, with rounded corners works with TC, however, window placement is still an issue with tray at top of screen. Seems, jwm, only works well without wbar icons, i.e., with the tray located at the bottom, ala, Windows, look and feel.  ::)
10+ Years Contributing to Linux Open Source Projects.