get start
sudo apt install xfce4-appfinder xfdesktop4 plank mate-terminal
how to configure jwm
- use .jwmrc file in HOME directory
- use lightdm to manage wm or de(I am using mate)
provide a sample of .jwmrc
also SEE this post and user
https://blog.csdn.net/weixin_41328687/article/details/127142907
I am a freshman to jwm so
<?xml version="1.0"?>
<JWM>
<!-- The root menu. -->
<RootMenu>
<!--
!!!NOTE!!!
this can change to what you like
-->
<!--<Include>/etc/jwm/debian-menu</Include>-->
<Program label="Terminal">mate-terminal</Program><!-- konsole maybe -->
<Program label="APPfinder">xfce4-appfinder</Program>
<Program label="Xkill">xkill</Program>
<Program label="Web">microsoft-edge</Program><!-- or firefox chrome-->
<Separator/>
<!--
<Menu label="Xfce4panel">
<Program label="On">xfce4-panel</Program>
<Program label="Off">killall xfce4-panel</Program>
</Menu>
-->
<Menu label="Xfcedesktop">
<Program label="On">xfdesktop</Program>
<Program label="Off">killall xfdesktop</Program>
</Menu>
<!--
<Menu label="Conky">
<Program label="on">conky -c /home//.conky/conkyrc.lua</Program>
<Program label="Off">killall conky</Program>
</Menu>
-->
<Menu label="Dock">
<Program label="On">plank</Program>
<Program label="Off">killall plank</Program>
</Menu>
<Separator/>
<Program label="Shutdown">shutdown now</Program>
<Program label="Reboot">reboot</Program>
<Exit label="Logout" confirm="true" icon="system-log-out.png"/>
</RootMenu>
<!-- Options for program groups. -->
<!-- Tray at the bottom. -->
<Tray x="0" y="1" height="30" autohide="on">
<TrayButton icon="/usr/share/jwm/jwm-blue.svg">root:1</TrayButton>
<!--
<Spacer width="2"/>
<TrayButton label="_">showdesktop</TrayButton>
<Spacer width="2"/>
<TrayButton>exec:caja</TrayButton>
<Spacer width="2"/>
-->
<!--
<TrayButton
icon="firefox.svg">exec:firefox</TrayButton>
-->
<!--
<Spacer width="2"/>
<Spacer width="2"/>
<Spacer width="10"/>
-->
<Pager labeled="true"/>
<TaskList maxwidth="256"/>
<Dock/>
<Clock format="%b%_d日星期%a%H:%M">
<Button mask="123">exec:xclock</Button>
</Clock>
</Tray>
<!-- Visual Styles -->
<WindowStyle>
<Font>LiHei Pro,STHeiti K-18:bold</Font>
<Width>4</Width>
<Height>28</Height>
<Corner>3</Corner>
<Foreground>#FFFFFF</Foreground>
<Background>#FFFFFF</Background>
<Outline>#000000</Outline>
<Opacity>0.5</Opacity>
<Active>
<Foreground>#FFFFFF</Foreground>
<Background>#0877CC</Background>
<Outline>#000000</Outline>
<Opacity>1.0</Opacity>
</Active>
</WindowStyle>
<TrayStyle group="true" list="all">
<Font>LiHei Pro,STHeiti K-18</Font>
<Background>#333333</Background>
<Foreground>#FFFFFF</Foreground>
<Outline>#000000</Outline>
<Opacity>0.75</Opacity>
</TrayStyle>
<TaskListStyle>
<Font>LiHei Pro,STHeiti K-18</Font>
<Active>
<Foreground>#FFFFFF</Foreground>
<Background>#555555</Background>
</Active>
<Foreground>#FFFFFF</Foreground>
<Background>#333333</Background>
</TaskListStyle>
<PagerStyle>
<Outline>#000000</Outline>
<Foreground>#555555</Foreground>
<Background>#333333</Background>
<Text>#FFFFFF</Text>
<Active>
<Foreground>#00c073</Foreground>
<Background>#004488</Background>
</Active>
</PagerStyle>
<MenuStyle>
<Font>LiHei Pro,STHeiti K-18</Font>
<Foreground>#FFFFFF</Foreground>
<Background>#333333</Background>
<Outline>#000000</Outline>
<Active>
<Foreground>#FFFFFF</Foreground>
<Background>#0077CC</Background>
</Active>
<Opacity>0.85</Opacity>
</MenuStyle>
<PopupStyle>
<Font>LiHei Pro,STHeiti K-18</Font>
<Foreground>#000000</Foreground>
<Background>#5bc8a8</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/gnome/32x32/actions</IconPath>
<IconPath>/usr/share/icons/la-capitaine-icon-theme/apps/scalable/</IconPath>
<IconPath>/usr/share/icons/hicolor/scalable/apps/</IconPath>
-->
<!-- Virtual Desktops -->
<!-- Desktop tags can be contained within Desktops for desktop names. -->
<Desktops width="4" 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/etcix/Pictures/01.jpeg
</Background>
-->
</Desktops>
<!-- Double click speed (in milliseconds) -->
<DoubleClickSpeed>1500</DoubleClickSpeed>
<!-- Double click delta (in pixels) -->
<DoubleClickDelta>10</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="Return">select</Key>
<Key key="Escape">escape</Key>
<!--
<Key key="F7">exec:amixer -D pulse sset Master 2%-</Key>
<Key key="F8">exec:amixer -D pulse sset Master 2%+</Key>
<Key key="XF86AudioLowerVolume">exec:amixer -D pulse sset Master 5%-</Key>
<Key key="XF86AudioRaiseVolume">exec:amixer -D pulse sset Master 5%+</Key>
-->
<!--<Key mask="S" key="t">exec:mate-terminal</Key>--><!--Shift t = terminal-->
<Key mask="S" key="F1">exec:xfce4-appfinder</Key>
<Key mask="S" key="u">exec:caja</Key>
<!--<Key key="XF86HomePage">exec:firefox</Key>-->
<Key mask="S" key="Delete">exec:xkill</Key>
<!--
<Key mask="S" key="F7">exec:xfce4-screenshooter -w</Key>
<Key mask="CS" key="F7">exec:xfce4-screenshooter -r</Key>
<Key mask="4" key="e">exec:jwm -exit</Key>
<Key mask="4" key="r">exec:jwm -restart</Key>
-->
<Key mask="A" key="h">maxh</Key>
<Key mask="A" key="v">maxv</Key>
<Key mask="A" key="Up">maxtop</Key>
<Key mask="A" key="Down">maxbottom</Key>
<Key mask="A" key="Left">maxleft</Key>
<Key mask="A" key="Right">maxright</Key>
<Key mask="A" key="f">maximize</Key>
<Key mask="A" key="m">minimize</Key>
<Key mask="A" key="r">resize</Key>
<Key mask="A" key="w">window</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="A" key="d">showdesktop</Key>
<Key mask="A" key="Tab">nextstacked</Key>
<!--<Key mask="C" key="#">desktop#</Key>-->
<Key mask="C" key="Right">rdesktop</Key><!-- C stand for ctrl-->
<Key mask="C" key="Left">ldesktop</Key><!-- C-left to move space -->
<Key mask="CA" key="Right">sendr</Key><!-- C-Alt right to move program to -->
<Key mask="CA" key="Left">sendl</Key>
<!--
!!!NOTE!!!
the rest can be ignored
Autostart -->
<StartupCommand>pulseaudio --start --daemonize=yes</StartupCommand>
<StartupCommand>xset s 3600</StartupCommand>
<StartupCommand>xset -dpms</StartupCommand>
<StartupCommand>redshift</StartupCommand>
</JWM>