LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-17-2019, 10:36 PM   #1
black-clover
Member
 
Registered: Jun 2017
Distribution: Devuan Daedalus, Debian Testing, SliTaz, Alpine Linux.
Posts: 208

Rep: Reputation: Disabled
Jwm discrepancy


Hi,

I'm trying to reproduce my Debian desktop on Slitaz.
I have installed Jwm and copied the file I use on Debian, Alpine, and so forth.
However, on Slitaz I can't get the windows border right.
Instead of a flat dark gray border I get a fading orange one.
Likewise on the menu active bar and the pager.

This is my .jwmrc file.

Code:
<?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="15" onroot="12">
    	<Program label="Terminal">lxterminal</Program>
	    <Program label="Root File Manager">sudo pcmanfm</Program>
	    <Program label="File Manager">pcmanfm</Program>
       <Separator/>
         <Include>$HOME/.jwmrc-mjwm</Include>
       <Separator/>
    	<Menu label="Exit">
          <Exit label="Logout" confirm="true" icon="quit.png"/>
		  <Program label="Reboot">sudo reboot</Program>
		  <Program label="Turn off">sudo poweroff</Program>	
		 </Menu>
        	<Program label="Refresh Menu">mjwm; jwm -reload </Program>
            <Restart label="Restart JWM" icon="restart.png"/>
    </RootMenu>

    <StartupCommand>sudo ifup wlan0</StartupCommand-->
    <StartupCommand>/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1</StartupCommand>
    <!--StartupCommand>/usr/lib/policykit-1/polkit-agent-helper-1</StartupCommand-->
   <StartupCommand>udevil mount /dev/sdb1</StartupCommand>
   <StartupCommand>udevil mount /dev/sdc1</StartupCommand>
   <!--StartupCommand>lxterminal</StartupCommand-->
   <StartupCommand>compton</StartupCommand>
   <StartupCommand>devilspie -a </StartupCommand>
   <StartupCommand>conky </StartupCommand>
   <!--StartupCommand>setxkbmap latam </StartupCommand-->


   <!-- Additional tray attributes: autohide, width, border, layer, layout -->

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

      <!-- Additional TrayButton attribute: label -->
      <TrayButton label="JWM">root:1</TrayButton>

      <TrayButton label="_">showdesktop</TrayButton>

      <!-- Additional Pager attribute: labeled -->
      <Pager labeled="true"/>

      <TaskList maxwidth="256"/>

      <Dock/>

      <!-- Additional Swallow attribute: height -->

      <Swallow name="xload" width="64">
         xload -nolabel -bg black -fg gray -hl white
      </Swallow>

      <Clock format="%H:%M">xclock</Clock>

   </Tray>

   <!-- Visual Styles -->

    <WindowStyle>
      <Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>
      <Width>4</Width>
      <Height>21</Height>
      <Background>gray20</Background>
      <Foreground>gray90</Foreground>
      <Outline>black</Outline>
      <Opacity>1.0</Opacity>
    
      <Active>
         <Background>gray20</Background>
         <Foreground>gray90</Foreground>
         <Outline>black</Outline>
         <Opacity>1.0</Opacity>
      </Active>

    </WindowStyle>

   <TrayStyle>
	   
      <Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>
      <Background>gray20</Background>
      <Foreground>gray90</Foreground>
      <Opacity>1.0</Opacity>

   </TrayStyle>  

   <TaskListStyle>

      <Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>
      <Foreground>gray50</Foreground>
      <Background>gray20</Background>
      <Active>
      <Foreground>gray90</Foreground>
      <Background>gray20</Background>

      </Active>

   </TaskListStyle>

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

     <PagerStyle>

          <Outline>black</Outline>
          <Foreground>gray90</Foreground>
          <Background>gray20</Background>
          <Active>
                <Foreground>gray70</Foreground>
                <Background>black</Background>
          </Active>

     </PagerStyle>

     <MenuStyle>
	   
      <Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>
      <Foreground>gray90</Foreground>
      <Background>gray20</Background>

       <Active>
           <Foreground>gray30</Foreground>
    	   <Background>gray80</Background>
      </Active>
      
           <Opacity>1.0</Opacity>

      </MenuStyle>

   <PopupStyle>

      <Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>
      <Outline>black</Outline>
      <Foreground>black</Foreground>
      <Background>yellow</Background>

   </PopupStyle>

   <IconPath>
      /usr/share/icons/wm-icons/32x32-gant
   </IconPath>

   <!-- Virtual Desktops -->
   <!-- Desktop tags can be contained within Desktops for desktop names. -->
   <Desktops width="4" height="2">
              <Background type="image">/usr/share/wallpaper/jwm.png</Background>

      <!-- Default background. Note that a Background tag can be
           contained within a Desktop tag to give a specific background
           for that desktop.
       -->

   </Desktops>

   <!-- Double click speed (in milliseconds) -->

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

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

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

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

   <!-- The resize mode (outline or opaque) -->
   <ResizeMode>opaque</ResizeMode>

   <!-- Key bindings -->
   <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="4" key="u">exec:pmount /dev/sdb1 sdb1 && pcmanfm /media/sdb1</Key>
   <Key mask="4" key="e">exec:sylpheed</Key>
   <Key mask="4" key="a">exec:pidgin</Key>
   <Key mask="4" key="t">exec:lxterminal</Key>
   <Key mask="4" key="p">exec:pcmanfm</Key>
   <Key mask="4" key="s">exec:trelby</Key>
   <Key mask="4" key="f">exec:falkon</Key>
   <Key mask="4" key="m">exec:mpv --shuffle /home/mac/music/gals/*.*</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">window</Key>
   <Key mask="A" key="F10">maximize</Key>
   <Key mask="A" key="Right">rdesktop</Key>
   <!--Key mask="A" key="Left">ldesktop</Key-->
   <Key mask="A" key="Up">udesktop</Key>
   <Key mask="A" key="Down">ddesktop</Key>

</JWM>
This is jwm -p output:

Code:
mac@slitaz:~$ jwm -p
JWM: warning: /home/mac/.jwmrc[24]: close tag "StartupCommand--" does not match open tag "StartupCommand"
JWM: warning: /home/mac/.jwmrc[188]: invalid entity: "&& pcman"
JWM: warning: /home/mac/.jwmrc[188]: invalid entity: "& pcmanf"
JWM: warning: /home/mac/.jwmrc-mjwm[94]: invalid entity: "&& subox"
JWM: warning: /home/mac/.jwmrc-mjwm[94]: invalid entity: "& subox "
JWM: warning: /home/mac/.jwmrc[68]: invalid tag in WindowStyle: Background
JWM: warning: /home/mac/.jwmrc[69]: invalid tag in WindowStyle: Foreground
JWM: warning: /home/mac/.jwmrc[70]: invalid tag in WindowStyle: Outline
JWM: warning: /home/mac/.jwmrc[71]: invalid tag in WindowStyle: Opacity
JWM: warning: /home/mac/.jwmrc[74]: invalid tag in Active: Background
JWM: warning: /home/mac/.jwmrc[75]: invalid tag in Active: Foreground
JWM: warning: /home/mac/.jwmrc[96]: invalid tag in TaskListStyle: Active
JWM: warning: /home/mac/.jwmrc[111]: invalid tag in PagerStyle: Active
JWM: warning: /home/mac/.jwmrc[124]: invalid tag in MenuStyle: Active
I checked the lines but I can't see anything wrong and this config works flawlessly on any other distro.

What am I doing wrong?
 
Old 02-18-2019, 08:43 PM   #2
black-clover
Member
 
Registered: Jun 2017
Distribution: Devuan Daedalus, Debian Testing, SliTaz, Alpine Linux.
Posts: 208

Original Poster
Rep: Reputation: Disabled
seems like the difefrent version accepts different tags.
went through some slitaz config and fixed the differences.
Ops!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any JWM experts here? Need advice/help with JWM linus72 Linux - Desktop 2 07-07-2009 04:41 PM
No audio or video in JWM saivin Linux - Desktop 1 12-23-2008 10:45 PM
LXer: Debian Etch with Xfce vs. Damn Small Linux with JWM/Fluxbox LXer Syndicated Linux News 0 12-27-2007 09:00 PM
Want to boot JWM instead of fluxbox yngvesl DamnSmallLinux 1 04-24-2006 05:21 PM
JWM (Joe's Window Manager) xgreen Slackware 0 11-11-2004 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration