SliTaz SliTaz Forum

You are not logged in.

#1 2019-02-18 20:17:58

sofia-m
Member
Registered: 2019-02-15
Posts: 75

Jwm behavior discrepancy

Hello everybody,

I'm trying to port my Debian Jwm desktop setting to Slitaz.

I have installed Jwm and copied the file I use on Debian.

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.

<?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:

c@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 these lines in .jwmrc, but I can't see anything wrong and this config works flawlessly on any other distro.

Suggestions?

Offline

#2 2019-02-19 02:48:07

sofia-m
Member
Registered: 2019-02-15
Posts: 75

Re: Jwm behavior discrepancy

Ok, I think I solved this one.

It seems the jwm version on SliTaz accepts differents tags.

I checked the version on the /etc/xdg/jwm/system.jwmrc file and comared the differences.

Working fine now.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]