[SOLVED] Showing tasks only for current desktop in JWM

Everything about X, Gnome, KDE, ... and everything running on it

[SOLVED] Showing tasks only for current desktop in JWM

Postby Lecram » 2020-01-18 18:07

hi,

I trying to setup JWM window manager, I have a question. whenever i change to another virtual desktop the applications in the first is showing in the second one's taskbar, How do i configure jwmrc file to show only the applications for the current desktop. I am using Debian 10 amd64.
Last edited by Lecram on 2020-01-20 17:24, edited 1 time in total.
User avatar
Lecram
 
Posts: 118
Joined: 2009-06-03 08:54
Location: India

Re: Showing tasks only for current desktop in JWM

Postby oswaldkelso » 2020-01-19 12:20

Long time since I tried JWM but here's my old .jwmrc so you can see how it works/worked... Providing they've not changed things. It is about 5 years old so bear that in mind. Shutdown and Reboot were out of date even when I tried it so just try the bits you need. Backup first!!

http://joewing.net/projects/jwm/guide.html
http://joewing.net/projects/jwm/config- ... l#desktops

edit. If you have tint2 installed it will cover the jwm panel

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

<JWM>
<!-- not used  <Clock format="%H:%M:%S">xclock -d</Clock>  not used -->
<!-- not used <StartupCommand> volumeicon </StartupCommand>  not used -->
<!-- not used <StartupCommand>gogglesmm --hide</StartupCommand>  not used -->
<!-- autostart. -->

<StartupCommand>bashrun2 </StartupCommand>
<StartupCommand>setxkbmap -model pc105 -layout gb -variant ,qwerty </StartupCommand>
<StartupCommand>conky</StartupCommand>
<StartupCommand>tint2</StartupCommand>
<StartupCommand>dclock -geometry 200x70-50+50 -date "Dragora GNU/Linux Libre %Y"</StartupCommand>
<StartupCommand>simpleswitcher -bw 4 -bc "#969696" -fg "#ffffff" -bg "#444444" -hlfg "#000000" -hlbg "#969696"</StartupCommand>


<!-- The root menu. -->
<RootMenu onroot="1">
<Program icon="bashrun2.png" label="Bashrun2">bashrun2</Program>
<Program icon="terminal.png" label="Terminal">xterm</Program>
<Program icon="rox.png" label="rox">rox</Program>
<Menu icon="folder.png" label="Applications">
<Program icon="folder.png" label="/usr/share/applications/">xfe /usr/share/applications/</Program>
<Program icon="/usr/share/pixmaps/Terminals.png" label="Xterm">xterm</Program>
<Program icon="/usr/share/pixmaps/Terminals.png"  label="Lilyterm">lilyterm</Program>
<Program icon="/usr/share/pixmaps/bashrun2.png" label="bashrun2">bashrun2</Program>
<Program icon="/usr/share/pixmaps/fxite.xpm" label="fxite">fxite</Program>
<Program icon="/usr/share/pixmaps/xfe.png" label="xfe">xfe</Program>
<Program icon="/usr/share/pixmaps/Audio.png" label="alsamixer">xterm alsamixer</Program>
<Program icon="/usr/share/pixmaps/icecat.png" label="icecat">icecat</Program>
<Program icon="/usr/share/pixmaps/gartoon-png-32/midori.png" label="midori">midori</Program>
<Program icon="/usr/share/pixmaps/gnome-globe.png" label="Netsurf">netsurf</Program>
<Program icon="/usr/share/pixmaps/xfe.png" label="xfe">xfe</Program>
<Program icon="/usr/share/pixmaps/rox.png" label="rox">rox</Program>
<Program icon="/usr/share/pixmaps/addessbook.png" label="addressbook">xterm abook</Program>
<Program icon="/usr/share/pixmaps/libreoffice.png" label="Open office">soffice</Program>
<Program icon="/usr/share/pixmaps/scribus.png" label="Scribus">scribus</Program>
<Program icon="/usr/share/pixmaps/gimp.png" label="Gimp">gimp-2.6</Program>
<Program icon="/usr/share/pixmaps/fxite.xpm" label="Editor fxite">fxite</Program>
<Program icon="/usr/share/pixmaps/gkrellm.png" label="gkrellm">gkrellm</Program> 
<Program icon="/usr/share/pixmaps/conky.png" label="conky">conky</Program>
<Separator/>
</Menu>
       
<Menu icon="folder.png" label="Key-bindings">
<Program  icon="window-close.png" label="X-apps">xterm -e elinks</Program>
<Separator/>
<Program   icon="music.png" label="W-a | audio">gogglesmm</Program>
<Program  icon="application-x-executable.png" label="W-b | bashburn">eterm -e bashburn</Program>
<Program  icon="calculator.png" label="W-c | Calc">xcalc</Program>
<Program  icon="dillo.xpm" label="W-d | Dillo">dillo</Program>
<Program  icon="edit.png" label="W-e | xedit">xedit</Program>
<Program  icon="adie.png" label="W-f | adie"> adie</Program>
<Program  icon="music.png" label="W-g | Gogglesmm">gogglesmm</Program>
<Program  icon="htop.png" label="W-h | H-top">xterm -e htop</Program>
<Program  icon="dxirc.png" label="W-i | irc">dxirc</Program>
<Program  icon="fxite.png" label="W-j | Fxite"> fxite</Program>
<Program  icon="xkill.png" label="W-k | xkill">xkill</Program>
<Program  icon="leafpad.png" label="W-l | leafpad">leafpad</Program>
<Program  icon="mplayer.png" label="W-m | MPlayer">xterm -e mplayer</Program>
<Program  icon="netsurf.png" label="W-n | netsurf">netsurf</Program>
<Program  icon="xfe.png" label="W-o | xfe">xfe</Program>
<Program  icon="pidgin.png" label="W-p | pidgin">pidgin</Program>
<Program  icon="geeeqie.png" label="W-q | geeQie">geeqie</Program>
<Program  icon="rox.png" label="W-r | rox">rox</Program>
<Program  icon="siag.png" label="W-s | Siag office">siag</Program>
<Program  icon="terminal.png" label="W-t | terminal">lilyterm</Program>
<Program  icon="feh.png" label="W-u | feh">feh</Program>
<Program  icon="mixer.png" label="W-v | volume mixer">xterm -e alsamixer</Program>
<Program  icon="graphic.png" label="W-w | xpaint">xpaint</Program>
<Program  icon="xtrlock.png" label="W-x | xtrlock">xtrlock</Program>
<Program  icon="fbpanel.png" label="W-y | fbpanel">fbpanel</Program>
<Program  icon="bashburn2.png" label="W-z | Bashrun2">bashrun2</Program>
<Separator/>
<Program  icon="terminal.png" label="terminal-apps">xxxxxx</Program>
<Separator/>
<Program  icon="audio.png" label="W-a | audio">xterm -e cplay</Program>
<Program  icon="brasero.png" label="W-b | bashburn">eterm -e bashburn</Program>
<Program  icon="calender.png" label="W-c | Cal">cal</Program>
<Program  icon="dillo.xpm" label="W-d | Dillo">dillo</Program>
<Program  icon="edit.png" label="W-e | xedit">xedit</Program>
<Program  icon="adie.png" label="W-f | adie"> adie</Program>
<Program  icon="music.png" label="W-g | Gogglesmm">gogglesmm</Program>
<Program  icon="htop.png" label="W-h | H-top">xterm -e htop</Program>
<Program  icon="firc.png" label="W-i | firc">dxirc</Program>
<Program  icon="fxite.png" label="W-j | Fxite"> fxite</Program>
<Program  icon="xkill.png" label="W-k | xkill">xkill</Program>
<Program  icon="leafpad.png" label="W-l | leafpad">leafpad</Program>
<Program  icon="mplayer.png" label="W-m | MPlayer">xterm -e mplayer</Program>
<Program  icon="netsurf.png" label="W-n | netsurf">netsurf</Program>
<Program  icon="xfe.png" label="W-o | xfe">xfe</Program>
<Program  icon="pidgin.png" label="W-p | pidgin">pidgin</Program>
<Program  icon="geeeqie.png" label="W-q | geeQie">geeqie</Program>
<Program  icon="rox.png" label="W-r | rox">rox</Program>
<Program  icon="siag.png" label="W-s | Siag office">siag</Program>
<Program  icon="terminal.png" label="W-t | terminal">lilyterm</Program>
<Program  icon="feh.png" label="W-u | feh">feh</Program>
<Program  icon="mixer.png" label="W-v | volume mixer">xterm -e alsamixer</Program>
<Program  icon="graphic.png" label="W-w | xpaint">xpaint</Program>
<Program  icon="xtrlock.png" label="W-x | xtrlock">xtrlock</Program>
<Program  icon="fbpanel.png" label="W-y | fbpanel">fbpanel</Program>
<Program  icon="bashburn2.png" label="W-z | Bashrun2">bashrun2</Program>


</Menu>

<Separator/>

<Menu icon="folder.png" label="Games">
<Program label="Xboard">xboard</Program>
<Program label="Dopewars">dopewars</Program>
<Program label="Gnugo">xterm -e gnugo</Program>
</Menu>   
         
<Separator/>

<Menu  icon="folder.png" label="Office">
<Program label="Open office">soffice</Program>
<Program label="scribus">scribus</Program>
<Program label="Gnumeric">gnumeric</Program>
<Program label="abiword">abiword</Program>
</Menu>

<Separator/>

<Menu  icon="folder.png" label="Graphics">
<Program icon="gimp.png" label="Gimp">gimp</Program>
<Program icon="inkscape.png"  label="Inkscape">inkscape</Program>
<Program icon="geeqie.png"  label="geeqie">geeqie</Program>
<Program icon="epdf.png"  label="epdfview">epdfview</Program>
<Program icon="xpf.png"  label="Mupdf">mupdf</Program>
<Program icon="pdf.png"  label="xPdf">xpdf</Program>
<Program icon="graphics.png"  label="graphics">xpaint</Program>
<Program icon="xsane.png" label="Xsane">skencil</Program>
<Program icon="ski.png"  label="sk1">sk1</Program>
</Menu>

<Separator/>


<Menu  icon="folder.png" label="Network">
<Program  icon="window-close.png" label="X-apps">xtermmm -e elinks</Program>
<Separator/>
<Program  icon="icecat.png" label="GNU-Icecat">icecat</Program>
<Program  icon="mozilla.png" label="mozilla">seamonkey</Program>
<Program  icon="epiphany.png" label="midori">midori</Program>
<Program  icon="dillo.png" label="netrik">dillo</Program>
<Program  icon="transmission.png" label="Transmission">transmission</Program>
<Separator/>
<Program  icon="terminal.png" label="terminal-apps">xtermmm -e elinks</Program>
<Separator/>
<Program  icon="gnome-globe.png" label="elinks">xterm -e elinks</Program>
<Program  icon="gnome-globe.png" label="netrik">xterm -e netrik</Program>
<Program  icon="gtorrentviewer.png" label="Rtorrent">xterm -e rtorrent</Program>
<Program  icon="gtorrentviewer.png" label="Ctorrent">xterm -e ctorrent</Program>
</Menu>

<Separator/>

<Menu  icon="folder.png" label="Multimedia">
<Program  icon="terminal.png" label="terminal-apps">xtermmm -e elinks</Program>
<Separator/>
<Program label="alsamixer">xterm -e alsamixer</Program>
<Program label="Cplay">xterm -e cplay</Program>
<Program label="Gogglesmm">gogglesmm</Program>
<Program label="ffplay">xterm -e ffplay</Program>
</Menu>

<Separator/>

<Menu  icon="folder.png" label="System">
<Program  icon="window-close.png" label="X-apps">xtermmm -e elinks</Program>
<Separator/>
<Program  icon="reconfigure.png" label="Reconfigure JWM">fxite ~/.jwmrc</Program>       
<Program  icon="cups.png" label="Printing CUPS">icecat http://localhost:631/</Program>
<Program  icon="calc.png" label="xcalc">xcalc</Program>
<Program  icon="search.png" label="search">xterm -e locate -i </Program>
<Program  icon="catfish.png" label="Catfish">catfish</Program>
<Program  icon="brasero.png" label="Burning CD/DVD">/usr/bin/brasero</Program>
<Program  icon="xachiver.png" label="Xarchiver">xarchiver</Program>
<Program  icon="fontforge.png" label="Fontforge">fontforge</Program>
<Program  icon="video-camera.png" label="RecordMyDesktop">gtk-recordMyDesktop</Program>
<Program  icon="groups.png" label="Groups">fxite /etc/group</Program>
<Program  icon="fxite.png" label="Util">fxite /etc/passwd</Program>
<Program  icon="programs.png" label="Programs">xfe /usr/bin</Program>
<Program  icon="print.png" label="Printing CUPS">icecat http://localhost:631/</Program>
<Program  icon="Rename.png" label="Rename"> exec:/usr/lib/Thunar/ThunarBulkRename %F</Program>

</Menu>

<Separator/>


<Menu icon="folder.png" label="Utilities">
<Program icon="font.png" label="Fonts">xfontsel</Program>
<Program icon="window.png" label="Window Properties"> xprop | xmessage -file - </Program>
<Program icon="mem.png" label="Memory"> lilytrem -e su -c ps_mem</Program>

</Menu>

<Separator/>

<Menu icon="folder.png" label="Key-maps">
<Program icon="font.png" label="GB keymap">setxkbmap -model pc105 -layout gb -variant ,qwerty </Program>
<Program icon="font.png" label="SE keymap">setxkbmap -model pc105 -layout se -variant ,qwerty </Program>
<Program icon="font.png" label="AR keymap">setxkbmap -model pc105 -layout ar -variant ,qwerty </Program>
<Program icon="font.png" label="DE keymap">setxkbmap -model pc105 -layout de -variant ,qwerty </Program>
<Program icon="font.png" label="US keymap">setxkbmap -model pc105 -layout us -variant ,qwerty </Program>
<Program icon="font.png" label="PT keymap">setxkbmap -model pc105 -layout pt -variant ,qwerty </Program>
<Program icon="font.png" label="CZ keymap">setxkbmap -model pc105 -layout cz -variant ,qwerty </Program>
<Program icon="font.png" label="RU keymap">setxkbmap -model pc105 -layout ru -variant ,qwerty </Program>
<Program icon="font.png" label="FR keymap">setxkbmap -model pc105 -layout fr -variant ,qwerty </Program>
</Menu>


<Separator/>
<Program icon="lock.png" label="Lock"> xtrlock </Program>
<Separator/>
<Restart label="Restart" icon="restart.png"/>
<Exit label="Exit" confirm="true" icon="quit.png"/>
</RootMenu>

<!-- The mouse button3 menu. -->

<RootMenu height="10" onroot="3">
<Program icon="bashrun2.png" label="Bashrun2">bashrun2</Program>
<Program icon="rox.png" label="rox">rox</Program>
<Menu  icon="folder.png" label="/">
<Program  icon="folder.png" label="/">xfe /</Program>
<Program icon="folder.png" label="/usr/share/applications/">rox /usr/share/applications/</Program>
<Program  icon="folder.png" label="/usr/bin">xfe /usr/bin</Program>
<Program  icon="folder.png" label="/usr/share">xfe /usr/share</Program>
<Program  icon="folder.png" label="/etc">xfe /etc</Program>
<Program  icon="folder.png" label="/tmp">xfe /tmp</Program>
<Program  icon="folder.png" label="/home">xfe /home</Program>
<Program  icon="folder.png" label="/media">xfe /media</Program>
</Menu>

<Separator/>

<Menu  icon="folder.png" label="Home">
<Program   icon="folder.png" label="Desktop">xfe ~/Desktop</Program>
<Program   icon="folder.png" label="Images">xfe ~/Images</Program>
<Program   icon="folder.png" label="Documents">xfe ~/Documents</Program>
<Program   icon="folder.png" label="Video">xfe ~/Video</Program>
<Program   icon="folder.png" label="Music">xfe ~/Music</Program>
<Program   icon="folder.png" label="Documents">xfe ~/Documents</Program>
<Program   icon="fxite.png" label="JWM configure">fxite ~/.jwmrc</Program>   
</Menu>

<Separator/>

<Program label="Print screen" key="Print">xterm -e scrot -cd 10</Program>
<Program label="Office">soffice</Program>
<Program label="Network">xterm wicd-curses</Program>
<Separator/>
<Program icon="/usr/share/pixmaps/xterm.png"label="xterm">xterm</Program>
<Program icon="/usr/share/pixmaps/Terminals.png"label="Terminal">xterm >lilyterm</Program>
<Separator/>
<Program label="Config">fxite ~/.jwmrc</Program>
<Restart label="Refresh" />
<Exit label="Logout" confirm="true"/>
<Program label="Suspend"></Program>
<Program label="Restart"></Program>

</RootMenu>

    <!-- Options for program groups. -->
<Group>
<Class>Pidgin</Class>
<Option>sticky</Option>
</Group>

<Group>>
<Name>gkrellm2</Name>
<Option>nolist</Option>
</Group>

<Group>
<Name>rxvt</Name>
<Option>vmax</Option>
</Group>


<Group>
<Name>lilyterm</Name>
<Option></Option>
<Option>icon:lilyterm.png</Option>
<Option>border</Option>
<Option></Option>
<Name>lilyterm</Name>
<Option>vmax</Option>
<Option>hmax</Option>
<Option>title</Option>
<Option></Option>
<Option></Option>
</Group>

<Group>
<Name>xterm</Name>
<Option></Option>
<Option>icon:lilyterm.png</Option>
<Option>border</Option>
<Option></Option>
<Name>xterm</Name>
<Option></Option>
<Option></Option>
<Option>title</Option>
<Option>minimized</Option>
<Option></Option>
</Group>


<Group>
<Name>rox</Name>
<Option>maximized</Option>
<Option>icon:rox.png</Option>
<Option>border</Option>
<Option></Option>
<Name>rox</Name>
<Option></Option>
<Option></Option>
<Option>title</Option>
<Option></Option>
<Option></Option>
</Group>

<Group>
<Name>bashrun2</Name>
<Option>nolist</Option>
<Option>nopager</Option>
<Option>noshade</Option>
<Option>notitle</Option>
</Group>

<Group>
<Name>dclock</Name>
<Option>nolist</Option>
<Option>nopager</Option>
<Option>noshade</Option>
<Option>notitle</Option>
</Group>


<Group>
<Name>gkrellm</Name>
<Option>nolist</Option>
<Option>nopager</Option>
<Option>noshade</Option>
<Option>notitle</Option>
</Group>


<!-- panel is called tray in jwm. These are the settings for the bottom tray -->
    <!-- Tray at the bottom. -->
 <Tray  x="0" y="-1" height="24" autohide="false">

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

<TrayButton  icon="gnome-eyes-applet.png" label="">showdesktop</TrayButton>

<!-- Additional TrayButton from dsl-->
     <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>
<!-- Additional TrayButton from dsl-->


<!-- Additional Pager attributes; width, height -->
<Pager/>

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

<Dock/>

<!-- Additional Swallow attribute: height -->
<Swallow name="Separator" width="25">Separator</Swallow>
<Swallow name="xload" width="64">xload -nolabel -bg black -fg green -hl white</Swallow>
<Swallow name="Separator" width="25">Separator</Swallow>
<Swallow name="wicd-gtk"> wicd-client</Swallow>
<Swallow name="Separator" width="25">Separator</Swallow>
<Swallow name="volumeicon"> volumeicon</Swallow>
<Swallow name="Separator" width="25">Separator</Swallow>

<!-- clock -->
<Clock format="%H:%M:%S">xclock -d</Clock>
</Tray>


<!-- panel is called tray in jwm. These are the settings for the top tray -->
<!-- Tray at the top -- shortcuts. -->
<!-- The RH mouse button menu - button3 -->
<Tray  x="0" y="1" height="24" autohide="false">
<!-- Additional TrayButton attribute: icon -->
<TrayButton label="x">root:3</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/bashrun2.png" >exec:bashrun2</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/Terminals.png" >exec:lilyterm</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/xterm.png" >exec:xterm</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/Audio.png" >xterm alsamixer</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/fxite.xpm" >exec:fxite</TrayButton>
<TrayButton  icon="rox.png" >exec:rox</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/xfe.png" >exec:xfe</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/dillo2.xpm" >exec:dillo</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/gartoon-png-32/graphics.png" >exec:xpaint</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/skencil.png" >exec:skencil</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/sk1.png" >exec:sk1</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/gartoon-png-32/browser.png" >exec:seamonkey</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/gartoon-png-32/libreoffice-math.png" >exec:siag</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/dxirc.png" >exec:dxirc</TrayButton>
<TrayButton  icon="/usr/share/pixmaps/gartoon-png-32/#process-stop.png"  label="xkill" >exec:xkill</TrayButton>
<Separator/>
<!-- Additional TrayButton attribute: label -->
<TrayButton label="Shutdown">exec:dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop </TrayButton>
<TrayButton label="Reboot">exec:dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart</TrayButton>
</Tray>



    <!-- Visual Styles -->
    <WindowStyle>
        <Font>FreeSans-9:bold</Font>
        <Width>4</Width>
        <Height>20</Height>
        <Active>
            <Text>#FFFFFF</Text>
            <Title>#7e7e7e:#969696</Title>
            <Outline>#000000</Outline>
            <Opacity>1.0</Opacity>
        </Active>
        <Inactive>
            <Text>#FFFFFF</Text>
            <Title>#7e7e7e:#111111</Title>
            <Outline>#000000</Outline>
            <Opacity>0.5:0.9:0.1</Opacity>
        </Inactive>
    </WindowStyle>
    <TrayStyle>
        <Font>FreeSans-9:bold</Font>
        <Background>#111111</Background>
        <Foreground>#FFFFFF</Foreground>
        <Opacity>0.75</Opacity>
    </TrayStyle>
    <TaskListStyle>
        <Font>FreeSans-9:bold</Font>
        <ActiveForeground>#FFFFFF</ActiveForeground>
        <ActiveBackground>#111111:#7e7e7e</ActiveBackground>
        <Foreground>#FFFFFF</Foreground>
        <Background>#7e7e7e:#111111</Background>
    </TaskListStyle>
    <PagerStyle>
        <Outline>#000000</Outline>
        <Text>#FFFFFF</Text>
        <Foreground>#444444</Foreground>
        <Background>#111111</Background>
        <ActiveForeground>#969696</ActiveForeground>
        <ActiveBackground>#7e7e7e</ActiveBackground>
    </PagerStyle>
    <MenuStyle>
        <Font>FreeSans-9</Font>
        <Foreground>#FFFFFF</Foreground>
        <Background>#48484d</Background>
        <ActiveForeground>#000000</ActiveForeground>
        <ActiveBackground>#969696</ActiveBackground>
        <Opacity>0.85</Opacity>
    </MenuStyle>
    <!--    <PopupStyle>  -->
 <PopupStyle enabled="true">
        <Font>FreeSans-9</Font>
        <Outline>#000000</Outline>
        <Foreground>#000000</Foreground>
        <Background>#7e7e7e</Background>
    </PopupStyle>

    <!-- Path where icons can be found.
         IconPath can be listed multiple times to allow searching
         for icons in multiple paths. -->

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

    <IconPath>
        /usr/share/pixmaps/
    </IconPath>

    <IconPath>
        /usr/share/pixmaps/gartoon-png-32/
    </IconPath>

    <IconPath>
    ~/.icons   
    </IconPath>

    <!-- Virtual Desktops -->
    <!-- Desktop tags can be contained within Desktops for desktop names. -->
    <Desktops width="8" height="1">
        <!-- Default background. Note that a Background tag can be
              contained within a Desktop tag to give a specific background
              for that desktop.-->

        <Background type="image">$HOME/images/backgrounds/foot-solders.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>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="A" key="Tab">exec:simpleswitcher  -bw 4 -bc "#969696" -fg "#ffffff" -bg "#444444" -hlfg "#000000" -hlbg "#969696"</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="F1">root:3</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="" key="Print">exec:xterm -e scrot -cd 5</Key>


   <Key mask="A" key="a">exec:gogglesmm</Key>
   <Key mask="A" key="b">exec:pcmanfm</Key>
   <Key mask="A" key="c" >exec:xterm</Key>
   <Key mask="A" key="d">exec:claws-mail</Key>
   <Key mask="A" key="e">exec:sudo /sbin/halt -p</Key>
   <Key mask="A" key="f">exec:sudo /sbin/reboot</Key>
   <Key mask="A" key="g">exec:xchat</Key>
   <Key mask="A" key="h">exec:leafpad</Key>
   <Key mask="A" key="i">exec:libreoffice3.5</Key>
   <Key mask="A" key="j">exec:firefox</Key>
   <Key mask="A" key="k">exec:pcmanfm</Key>
   <Key mask="A" key="l" >exec:xterm</Key>
   <Key mask="A" key="m">exec:claws-mail</Key>
   <Key mask="A" key="n">exec:sudo /sbin/halt -p</Key>
   <Key mask="A" key="o">exec:sudo /sbin/reboot</Key>
   <Key mask="A" key="p">exec:xchat</Key>
   <Key mask="A" key="r">exec:rox</Key>
   <Key mask="A" key="q">exec:libreoffice3.5</Key>
   <Key mask="A" key="s">exec:firefox</Key>
   <Key mask="A" key="t">exec:pcmanfm</Key>
   <Key mask="A" key="u" >exec:xterm</Key>
   <Key mask="A" key="v">exec:claws-mail</Key>
   <Key mask="A" key="w">exec:sudo /sbin/halt -p</Key>
   <Key mask="A" key="x">exec:sudo /sbin/reboot</Key>
   <Key mask="A" key="y">exec:xchat</Key>
   <Key mask="A" key="z">exec:leafpad</Key>

</JWM>
<!-- works up to here! -->

Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
User avatar
oswaldkelso
 
Posts: 1255
Joined: 2005-07-26 23:20
Location: UK

Re: Showing tasks only for current desktop in JWM

Postby Lecram » 2020-01-20 17:23

oswaldkelso wrote:Long time since I tried JWM but here's my old .jwmrc so you can see how it works/worked... Providing they've not changed things. It is about 5 years old so bear that in mind.


Me too, I haven't used JWM in about four years, add to that i had lost my .jwmrc file. I had painstakingly configured everything back then so anyway my memory must have been faulty because back then the tasks showed only for the current desktop, if that wasn't the case then I must have removed the extra virtual desktop.
The closest to the answer i came across is setting the
Code: Select all
TaskList maxwidth = 1

but this is not a proper solution because as it would hide the task from tray if it were minimized.
There is a similar bug report i came across https://github.com/joewing/jwm/issues/209 but this involves the group options and this doesn't work out well.
Finally there is an another workaround that is to install and startup the lxpanel when we log in to JWM.

I'm going to mark it as solved, but if you have answers that doesn't involve lxpanel or tint2 then please post it here.
User avatar
Lecram
 
Posts: 118
Joined: 2009-06-03 08:54
Location: India

Re: [SOLVED] Showing tasks only for current desktop in JWM

Postby Lecram » 2020-01-23 16:57

ok I think I have found the solution, Just disable the TrayStyle option in jwmrc. Now it will show tasks for the current desktop only
User avatar
Lecram
 
Posts: 118
Joined: 2009-06-03 08:54
Location: India


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 17 guests

fashionable