Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[experimental] Delicate and JWM
02-28-2012, 01:05 PM
Post: #1
[experimental] Delicate and JWM
[Image: 27417d177196955.jpg]


WARNING: The following information is experimental, so please don't use it if you're not sure what you're doing!! It doesn't use the menugenerator and when you're editting menu entries you need to be root, so you can easily make mistakes.
It's meant to be informative and certainly not for everydays use, IceWM does that job
very well.

Delicate Linux and JWM in Gnome 2.xx look
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A while ago I saw something in the AntiX forum about JWM in Gnome 2.xx look, I thought that perhaps I can make something like that.
I really had some doubts to publish it, because some people may try and I don't wanna cause any troubles, on the other hand perhaps this information can be useful for those with more experience and it's nice as a showoff to those who loved Gnome 2 (and hate Unity or Gnome 3). Expect rough edges and there is still room for improvements, some entries are NOT in the official Delicate repositories but my own creations. Perhaps someone can makes it better, that wouldn't be that hard Smile

The first step:
Create the JWM PKGBUILD

Code:
# Maintainer: theo - nl2stk

pkgname=jwm
pkgver=2.1.0
pkgrel=1
pkgdesc="A lightweight window manager for the X11 Window System"
url="http://joewing.net/programs/jwm/"
license=('GPL2')
depends=('libX11' 'fribidi' 'libxfont' 'libjpeg' 'libxpm' 'libpng')
source=(http://joewing.net/programs/jwm/releases/jwm-$pkgver.tar.bz2)
md5sums=('e8fab21b2410eb82032b7c3472af642c')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr --sysconfdir=/etc  --disable-xinerama \
  --host=$CHOST --build=$CHOST
  make || return 1
  make BINDIR="$pkgdir/usr/bin" MANDIR="$pkgdir/usr/share/man" \
       SYSCONF="$pkgdir/etc" install
}

After making this package and installation, you can choose it with the 'delisetup'
With 'startx' you're running JWM in the standard modus and most programs are missing in the menu. Remember JWM doesn't use a menugenerator or something,
so it's oldfashion handwork.
The configuration file is NOT in your homedirectory so you need to be root to edit it.
BIG BIG warning be very careful and backup your original etc/system.jwmrc !!!

In my example I use esetroot (to set the wallpaper) and conky (which I placed on the right side of the screen). Another thing is that I'm using the 800 x 600 resolution, so perhaps the panels needs some finetuning when you're using a higher resolution.
I've made some standard directories like Gnome has with the following names: Desktop, Documents, Downloads, Music, Pictures and Videos. Desktop is a special one, it's not like in Gnome that you're actually looking at the stuff at you're Desktop.
But I'm using it as a high priority directory, some programs using it and give it a nice place (leafpad does). So it's nice feature afterall.
Another thing is that I included some bash scripts to make something easier, like to make a repository list and a helpfile for making PKGBUILD files.
Enough said, this is the etc/system.jwmrc I'm using:

Code:
<?xml version="1.0"?>

<JWM>

<StartupCommand>
Esetroot -m $HOME/Wallpapers/oblack.jpg &
conky
</StartupCommand>

<Group>
<Name>xmessage</Name>
<Name>xpad</Name>
<Option>noborder</Option>
<Option>nolist</Option>
<Option>notitle</Option>
</Group>

   <RootMenu height="0" onroot="0">
          <Program icon="gnome-session-reboot.png" label="Reboot">exec reboot</Program>
          <Program icon="gnome-session-halt.png" label="Shutdown">exec poweroff</Program>
          <Exit icon="application-exit.png" label="Exit-X" confirm="false"/>
   </RootMenu>

   <RootMenu height="0" onroot="12">
   </RootMenu>

   <RootMenu height="0" onroot="3">
      <Menu icon="applications-accessories.png" label="Accessories">
    <Program icon="utilities-terminal.png" label="Terminal">exec xterm -fg white -bg black</Program>
    <Program icon="accessories-calculator.png" label="Calculator">exec calculator</Program>
        <Program icon="agenda_icon.png" label="Agenda">exec osmo</Program>
    <Program icon="task-due.png" label="Clipboard">exec xclipboard</Program>
        <Program icon="gtk-edit.png" label="Edit">exec leafpad</Program>
      </Menu>
      
      <Menu icon="applications-graphics.png" label="Graphics">
    <Program icon="paint.png" label="Paint">exec mtpaint</Program>
    <Program icon="gimp.png" label="Gimp">exec gimp</Program>
    <Program icon="dia.png" label="Dia">exec dia</Program>
        <Program icon="image-x-generic.png" label="Imageview">exec gqview</Program>
        <Program icon="camera-icon.png" label="GPicView">exec gpicview</Program>
      </Menu>
      
      <Menu icon="applications-internet.png" label="Internet">
    <Program icon="web-browser.png" label="Skipstone">exec skipstone</Program>
        <Program icon="Browser.png" label="Links">exec xterm -fg white -bg black -e links -g</Program>
        <Program icon="email.png" label="E-Mail">exec sylpheed</Program>
        <Program icon="user-chat-icon.png" label="Messenger">exec xterm -fg white -bg black centerim</Program>
        <Program icon="xchat_icon.png" label="IRC">exec xchat</Programs>
        <Program icon="applications-filesharing.png" label="File Sharing">exec transmission</Program>
        <Program icon="applications-microblogging-panel.png" label="Twitter">exec xterm -fg white -bg black -e ~/tweet.sh</Program>
        <Program icon="rss-icon.png" label="RSS-Reader">exec xterm -fg white -bg black snownews</Program>
      </Menu>
    
      <Menu icon="applications-office.png" label="Office">
      <Program icon="abiword.png" label="Documents">exec abiword</Program>
      <Program icon="beta-base.png" label="Spreadsheet">exec gnumeric</Program>
      <Program icon="Adobe-PDF-icon.png" label="PDF-Viewer">exec epdfview</Program>
      </Menu>
    
      <Menu icon="multimedia.png" label="Sound + Video">
      <Program icon="applications-multimedia.png" label="Media Player">exec xmms</Program>
      <Program icon="vlc.png" label="Movie Player">exec xterm -fg white -bg black vlc</Program>
      <Program icon="audio-volume-high.png" label="Aumix">exec aumix</Program>
      </Menu>

      <Menu icon="applications-games.png" label="Games">
          <Program icon="lbreakout.png" label="Lbreakout 2">exec lbreakout2</Program>
          <Program icon="openttd.png" label="Openttd">exec openttd</Program>
          <Program icon="supertux.png" label="Supertux">exec supertux</Program>
          <Program icon="lincity.png" label="Xlincity">exec xlincity</Program>
          <Program icon="abuse.png" label="Abuse">exec abuse</Program>
          <Program icon="lmarbles.png" label="Lmarbles">exec lmarbles</Program>
          <Program icon="CYAsokoban-icon.png" label="CYAsokoban">exec syasokoban</Program>
      </Menu>

       <Menu icon="emulator.png" label="Emulation">
          <Program icon="MS-DOS.png" label="MS-DOS">exec dosbox</Program>
          <Program icon="commodore.png" label="Vice">exec x64</Program>
          <Program icon="joystick.png" label="Amstrad CPC">exec arnold</Program>
          <Program icon="samcoupe.png" label="Sim Coupe">exec simcoupe</Program>
          <Program icon="sega.png" label="Sega">exec generator-gtk</Program>
          <Program icon="beebem.png" label="Acorn BBC">exec beebem</Program>
      </Menu>



      <Menu icon="applications-system.png" label="System Tools">
          <Program icon="utilities-system-monitor.png" label="Htop">exec xterm -e htop</Program>
      </Menu>
   </RootMenu>

   <RootMenu height="0" onroot="6">
    <Program icon="user-home.png" label="Home Folder">exec rox</Program>
    <Program icon="user-desktop.png" label="Desktop">exec rox ~/Desktop</Program>
    <Program icon="folder-documents.png" label="Documents">exec rox ~/Documents</Program>
    <Program icon="folder-download.png" label="Downloads">exec rox ~/Downloads</Program>
    <Program icon="folder-music.png" label="Music">exec rox ~/Music</Program>
    <Program icon="folder-pictures.png" label="Pictures">exec rox ~/Pictures</Program>
        <Program icon="folder-videos.png" label="Videos">exec rox ~/Videos</Program>
   </RootMenu>

   <RootMenu height="0" onroot="7">
      <Menu icon="preferences-system.png" label="Administration">
        <Program icon="root-terminal.png" label="Root Terminal">exec xterm -fg white -bg black ~/rootter.sh</Program>
        <Separator/>
        <Program icon="WIP-icon.png" label="Make Repolist">exec xterm -e ~/crepo.sh</Program>
        <Program icon="Information.png" label="View Repolist">exec leafpad ~/repo.txt</Program>
        <Program icon="help-icon.png" label="Pacman Help">exec xterm -fg white -bg black -e lynx www.archlinux.org/pacman/pacman.8.html</Program>
        <Program icon="Lego.png" label="PKGBUILD Help">exec leafpad ~/pkghelp.txt</Program>
        <Separator/>
        <Program icon="taskmanager.png" label="LxTaskManager">lxtask</Program>    
      </Menu>
      <Menu icon="preferences-desktop.png" label="Preferences">
          <Program icon="preferences-desktop-theme.png" label="Appearance">exec lxappearance</Program>
      </Menu>
    <Separator/>
          <Program icon="gnome-log-out.png" label="Logout">exec poweroff</Program>
    <Separator/>
        <Restart icon="view-refresh.png" label="Restart JWM"/>
   </RootMenu>


   <Tray  x="0" y="0" height="0">
      <TrayButton label=" Applications  ">root: 3</TrayButton>
      <TrayButton label=" Places  ">root: 6</TrayButton>
      <TrayButton label=" System  ">root: 7</TrayButton>
      <TrayButton label="                                                                                                                                                        "></TrayButton>
   </Tray>
  
   <Tray  x="-1" y="0" height="0">
      <Swallow name="xload" width="32" height="-1">
        xload -nolabel -bg black -fg green -hl white
      </Swallow>
      <Clock format="   %a %b %d - %l:%M      ">exec cal | xmessage -g -1+32 -file "-"</Clock>
      <TrayButton icon="gnome-log-out-small.png">root: 0</TrayButton>
   </Tray>

   <Tray  halign="center" valign="bottom" height="24">
      <TrayButton icon="go-down.png">showdesktop</TrayButton>
      <TaskList/>
      <Dock/>
      <Pager/>
   </Tray>
  

<!-- Visual Styles -->

   <WindowStyle>

      <Font>Sans-11</Font>
      <Width>4</Width>
      <Height>18</Height>

      <Active>
         <Text>white</Text>
         <Title>gray30:gray20</Title>
         <Corner>gray20</Corner>
         <Outline>black</Outline>
      </Active>

      <Inactive>
         <Text>white</Text>
         <Title>gray20:gray30</Title>
         <Corner>gray30</Corner>
         <Outline>black</Outline>
      </Inactive>

   </WindowStyle>

   <TaskListStyle>
      <Font>Sans-11</Font>
      <ActiveForeground>white</ActiveForeground>
      <ActiveBackground>gray30</ActiveBackground>
      <Foreground>white</Foreground>
      <Background>gray20</Background>
   </TaskListStyle>

   <TrayStyle>
      <Font>Sans-10</Font>
      <Background>black</Background>
      <Foreground>white</Foreground>
   </TrayStyle>

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

   <MenuStyle>
      <Font>Sans-12</Font>
      <Foreground>white</Foreground>
      <Background>gray20</Background>
      <ActiveForeground>white</ActiveForeground>
      <ActiveBackground>gray30</ActiveBackground>
   </MenuStyle>

   <PopupStyle enabled="false"/>

   <IconPath>
      $HOME/.icons
   </IconPath>
<!-- further icon paths - not in use yet -->
   <IconPath>
      /usr/share/pixmaps
   </IconPath>
   <IconPath>
      /usr/share/icons/gnome/16x16/categories
   </IconPath>
   <IconPath>
      /usr/share/icons/gnome/16x16/actions
   </IconPath>
   <IconPath>
      /usr/share/icons/gnome/16x16/apps
   </IconPath>
   <IconPath>
      /usr/share/icons/gnome/16x16/places
   </IconPath>
   <IconPath>
      /usr/share/icons/gnome/16x16/status
   </IconPath>
   <IconPath>
      /usr/share/icons/hicolor/16x16/apps
   </IconPath>

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


<!-- Key bindings -->
</JWM>

For the root terminal entry I've made a simple bash file called rootter.sh (executable) which is placed in the home dir. Maybe it can be nicer but I'm a bit lazy.

Code:
#!/bin/bash
su
exit 0

For making a recent repolist I've created another small (executable) bash file called 'crepo.sh'.

Code:
#!/bin/bash
pacman -Sl>repo.txt
exit 0

The PKGHELP is nothing more than a textfile which contains the same information as the 'collected bits and pieces' topic as displayed in the forum.

The only thing that's missing right now are the icons, I've installed them in the ~/.icons directory, but you can place them in whatever you want if you included the path in the system.jwmrc
Please remember that this is only an example and I've include them.
I'll hope it's worth reading Smile


Attached File(s)
.gz  icons.tar.gz (Size: 86.79 KB / Downloads: 4)

Hardware in use: Compaq PIII- 1GHZ, Geforce 4000, 256mb, 80gb HD
Dutch Delicate Linux information: http://www.delicatelinux.nl.ae
Visit this user's website Find all posts by this user
Quote this message in a reply
02-28-2012, 07:00 PM
Post: #2
RE: [experimental] Delicate and JWM
Aaaaha ... again, very nice.

Pity, that it's unofficial ..... yet?
Visit this user's website Find all posts by this user
Quote this message in a reply
02-28-2012, 08:55 PM
Post: #3
RE: [experimental] Delicate and JWM
(02-28-2012 07:00 PM)tavvva Wrote:  Aaaaha ... again, very nice.

Pity, that it's unofficial ..... yet?

There ain't such thing as an official package :]
Once in a while I'm working at it to make it better and collect bits and pieces that I can use.
All is done with the original JWM (not the hacked version), the system.jwmrc and the icons which are included. Only the wallpaper is not included. It's as is... People may do with it whatever they want... as long as they improve it and share it :]

Hardware in use: Compaq PIII- 1GHZ, Geforce 4000, 256mb, 80gb HD
Dutch Delicate Linux information: http://www.delicatelinux.nl.ae
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | DeLi(cate) Linux | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication