https://github.com/aleh/pocketchip-jwmrc

sudo apt-get install jwm
sudo apt-get install libxft-dev
git clone https://github.com/aleh/pocketchip-jwmrc.git
cd pocketchip-jwmrc
sudo make install
sudo reboot

桌面配置文件 /home/chip/.jwmrc

<?xml version="1.0"?>
<JWM>
   <!-- vim: set expandtab ts=3 sw=3 ai : -->

   <RootMenu height="18" onroot="12">

      <Program icon="terminal.png" label="Terminal">vala-terminal -fs 8</Program>
      <Program icon="pico8.png" label="PICO-8">pico8</Program>
      <Program icon="musicsequencer.png" label="SunVox">sunvox</Program>
      <Program icon="filebrowser.png" label="File Manager">pcmanfm</Program>
      <Program icon="webbrowser.png" label="Internet">surf -n -p -u "Mozilla/4.0 (PSP (PlayStation Portable); 2.00)" google.com</Program>
      <Program icon="texteditor.png" label="Text Editor">leafpad</Program>
      <Program icon="virtualboy.png" label="RetroArch">retroarch</Program>     
      <Program icon="kodi.png" label="Kodi">kodi</Program>
      <Separator/>

      <Menu label="Sound">
         <Program label="Enable Internal Speaker">
            amixer sset 'Left Mixer Left DAC' playback on
            amixer sset 'Power Amplifier Mixer' playback off
            amixer sset 'Right Mixer Left DAC' playback off
            amixer sset 'Right Mixer Right DAC' playback off
         </Program>
         <Program label="Disable Internal Speaker">
            amixer sset 'Left Mixer Left DAC' playback off 
            amixer sset 'Power Amplifier Mixer' playback off
            amixer sset 'Right Mixer Left DAC' playback off
            amixer sset 'Right Mixer Right DAC' playback off
         </Program>
         <Separator/>
         <Program label="Low">amixer sset 'Power Amplifier' playback 40%</Program>
         <Program label="Medium">amixer sset 'Power Amplifier' playback 50%</Program>
         <Program label="High">amixer sset 'Power Amplifier' playback 70%</Program>
         <Program label="Max">amixer sset 'Power Amplifier' playback 100%</Program>
      </Menu>

      <Menu label="Backlight">
         <Program label="10%">echo "1" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="20%">echo "2" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="50%">echo "5" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="80%">echo "8" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="100%">echo "10" > /sys/class/backlight/backlight/brightness</Program>
      </Menu>

      <Menu label="WiFi">
         <Program label="Configure">xfce4-terminal --hide-menubar --hide-toolbar -e nmtui</Program>
      </Menu>

      <Menu label="More">
         <Program label="Shutdown">systemctl poweroff</Program>
         <Program label="Reboot">systemctl reboot</Program>
         <Exit label="Log Out"/>
         <Separator/>

         <Program label="Screenshoot (Shift+Alt+3)">xfce4-screenshooter -d 1 -f -s /home/chip/Pictures</Program>
         <Separator/>

         <Restart label="Reload .jwmrc"/>
         <Program label="Edit .jwmrc">leafpad --tab-width=3 ~/.jwmrc</Program>
      </Menu>

   </RootMenu>

   <!-- By default we run all the programs maximized. -->
   <Group>
      <Name>.*</Name>
      <Option>maximized</Option>
   </Group>

   <!-- These have own preferences. -->
   <Group>
      <Name>sunvox|pico|retroarch|kodi</Name>
      <Option>notitle</Option>
      <Option>noborder</Option>
      <Option>maximized</Option>
   </Group>

   <!-- Programs that should not run maximized -->
   <Group>
      <Name>VisualBoyAdvance</Name>
   </Group>

   <Tray x="0" y="-1" height="20" autohide="off" layer="normal"> 

      <TrayButton label="Start" popup="">root:1</TrayButton>

      <Pager labeled="false"/>

      <TaskList maxwidth="150"/>

      <Dock/>

      <!-- Here an external X program (our battery status one) is started and is wrapped into the tray. -->
      <Swallow name="pocketchip-xbatt" width="70">pocketchip-xbatt --text=#ffffff --background=#ff007f</Swallow>

      <Clock format="%H:%M" zone=":Asia/Shanghai"/>

   </Tray>

   <WindowStyle>

      <Font>Sans-8:bold</Font>
      <Width>2</Width>
      <Height>15</Height>

      <Active>
         <Text>white</Text>
         <Title>#ff007f</Title>
         <Outline>white</Outline>
         <Opacity>1</Opacity>
         <Corner>1</Corner>
      </Active>

      <Inactive>
         <Text>white</Text>
         <Title>#ff007f</Title>
         <Outline>black</Outline>
         <Opacity>1</Opacity>
         <Corner>1</Corner>
      </Inactive>

   </WindowStyle>

   <TaskListStyle>
      <Font>Sans-8</Font>
      <ActiveForeground>#ff007f</ActiveForeground>
      <ActiveBackground>white</ActiveBackground>
      <Foreground>#ff007f</Foreground>
      <Background>white</Background>
      <Outline>black</Outline>
   </TaskListStyle>

   <TrayStyle>
      <Font>Sans-8:bold</Font>
      <Background>#ff007f</Background>
      <Foreground>white</Foreground>
      <Opacity>1</Opacity>
      <Decorations>flat</Decorations>
      <Outline>#ff007f</Outline>
      <Active>
         <Foreground>white</Foreground>
         <Background>#ff007f</Background>
      </Active>
   </TrayStyle>

   <PagerStyle>
      <Outline>black</Outline>
      <Foreground>gray90</Foreground>
      <Background>#808488</Background>
      <ActiveForeground>#70849d</ActiveForeground>
      <ActiveBackground>#2e3a67</ActiveBackground>
   </PagerStyle>

   <MenuStyle>
      <Font>Sans-8</Font>
      <Foreground>white</Foreground>
      <Background>#ff007f</Background>
      <Outline>#ff007f</Outline>
      <Corner>1</Corner>
      <ActiveForeground>#ff007f</ActiveForeground>
      <ActiveBackground>white</ActiveBackground>
      <Opacity>1</Opacity>
      <Decorations>flat</Decorations>
   </MenuStyle>

   <PopupStyle>
      <Enabled>false</Enabled>
      <Font>Sans-8</Font>
      <Outline>white</Outline>
      <Foreground>black</Foreground>
      <Background>yellow</Background>
   </PopupStyle>

   <IconPath>/home/chip/appIcons/</IconPath>

   <!-- Virtual Desktops -->
   <Desktops width="2" height="2">
      <!-- <Background type="solid">#4d4d4d</Background> -->
      <Background type="image">/home/chip/appIcons/background.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>click</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>

   <!--
    <StartupCommand>gkrellm</StartupCommand>
   -->

   <!-- 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="SA" key="3">exec:xfce4-screenshooter -f -s /home/chip/Pictures</Key>

   <Key mask="C" key="Tab">next</Key>
   <Key mask="A" key="Tab">next</Key>

   <Key mask="C" key="w">close</Key>
   <Key mask="C" key="q">close</Key>

   <Key mask="C" key="Escape">root:1</Key>
   <Key key="XF86PowerOff">showdesktop</Key>

   <Key mask="S" key="Escape">window</Key>

   <Key mask="C" key="#">desktop#</Key>
   <Key mask="C" key="Enter">maximize</Key>

   <Key mask="C" key="Right">rdesktop</Key>
   <Key mask="C" key="Left">ldesktop</Key>
   <Key mask="C" key="Up">udesktop</Key>
   <Key mask="C" key="Down">ddesktop</Key>
</JWM>

app图标路径/home/chip/appIcons/
appIcons.rar

Screenshot - 2020年11月14日 - 07时08分07秒.png

灰色的

<?xml version="1.0"?>
<JWM>
   <!-- vim: set expandtab ts=3 sw=3 ai : -->

   <RootMenu height="18" onroot="12">

      <Program icon="terminal.png" label="Terminal">vala-terminal -fs 8</Program>
      <Program icon="pico8.png" label="PICO-8">pico8</Program>
      <Program icon="musicsequencer.png" label="SunVox">sunvox</Program>
      <Program icon="filebrowser.png" label="File Manager">pcmanfm</Program>
      <Program icon="webbrowser.png" label="Internet">surf -n -p -u "Mozilla/4.0 (PSP (PlayStation Portable); 2.00)" google.com</Program>
      <Program icon="texteditor.png" label="Text Editor">leafpad</Program>
      <Program icon="virtualboy.png" label="RetroArch">retroarch</Program>     
      <Program icon="kodi.png" label="Kodi">kodi</Program>
      <Separator/>

      <Menu label="Sound">
         <Program label="Enable Internal Speaker">
            amixer sset 'Left Mixer Left DAC' playback on
            amixer sset 'Power Amplifier Mixer' playback off
            amixer sset 'Right Mixer Left DAC' playback off
            amixer sset 'Right Mixer Right DAC' playback off
         </Program>
         <Program label="Disable Internal Speaker">
            amixer sset 'Left Mixer Left DAC' playback off 
            amixer sset 'Power Amplifier Mixer' playback off
            amixer sset 'Right Mixer Left DAC' playback off
            amixer sset 'Right Mixer Right DAC' playback off
         </Program>
         <Separator/>
         <Program label="Low">amixer sset 'Power Amplifier' playback 40%</Program>
         <Program label="Medium">amixer sset 'Power Amplifier' playback 50%</Program>
         <Program label="High">amixer sset 'Power Amplifier' playback 70%</Program>
         <Program label="Max">amixer sset 'Power Amplifier' playback 100%</Program>
      </Menu>

      <Menu label="Backlight">
         <Program label="10%">echo "1" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="20%">echo "2" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="50%">echo "5" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="80%">echo "8" > /sys/class/backlight/backlight/brightness</Program>
         <Program label="100%">echo "10" > /sys/class/backlight/backlight/brightness</Program>
      </Menu>

      <Menu label="WiFi">
         <Program label="Configure">xfce4-terminal --hide-menubar --hide-toolbar -e nmtui</Program>
      </Menu>

      <Menu label="More">
         <Program label="Shutdown">systemctl poweroff</Program>
         <Program label="Reboot">systemctl reboot</Program>
         <Exit label="Log Out"/>
         <Separator/>

         <Program label="Screenshoot (Shift+Alt+3)">xfce4-screenshooter -d 1 -f -s /home/chip/Pictures</Program>
         <Separator/>

         <Restart label="Reload .jwmrc"/>
         <Program label="Edit .jwmrc">leafpad --tab-width=3 ~/.jwmrc</Program>
      </Menu>

   </RootMenu>

   <!-- By default we run all the programs maximized. -->
   <Group>
      <Name>.*</Name>
      <Option>maximized</Option>
   </Group>

   <!-- These have own preferences. -->
   <Group>
      <Name>sunvox|pico|retroarch|kodi</Name>
      <Option>notitle</Option>
      <Option>noborder</Option>
      <Option>maximized</Option>
   </Group>

   <!-- Programs that should not run maximized -->
   <Group>
      <Name>VisualBoyAdvance</Name>
   </Group>

   <Tray x="0" y="-1" height="20" autohide="off" layer="normal"> 

      <TrayButton label="Start" popup="">root:1</TrayButton>

      <Pager labeled="false"/>

      <TaskList maxwidth="150"/>

      <Dock/>

      <!-- Here an external X program (our battery status one) is started and is wrapped into the tray. -->
      <Swallow name="pocketchip-xbatt" width="70">pocketchip-xbatt --text=#ffffff --background=#333333</Swallow>

      <Clock format="%H:%M" zone=":Asia/Shanghai"/>

   </Tray>

   <WindowStyle>

      <Font>Sans-8:bold</Font>
      <Width>2</Width>
      <Height>15</Height>

      <Active>
         <Text>white</Text>
         <Title>#ff007f</Title>
         <Outline>white</Outline>
         <Opacity>1</Opacity>
         <Corner>1</Corner>
      </Active>

      <Inactive>
         <Text>white</Text>
         <Title>#ff007f</Title>
         <Outline>black</Outline>
         <Opacity>1</Opacity>
         <Corner>1</Corner>
      </Inactive>

   </WindowStyle>

   <TaskListStyle>
      <Font>Sans-8</Font>
      <ActiveForeground>#333333</ActiveForeground>
      <ActiveBackground>white</ActiveBackground>
      <Foreground>#333333</Foreground>
      <Background>white</Background>
      <Outline>black</Outline>
   </TaskListStyle>

   <TrayStyle>
      <Font>Sans-8:bold</Font>
      <Background>#333333</Background>
      <Foreground>white</Foreground>
      <Opacity>1</Opacity>
      <Decorations>flat</Decorations>
      <Outline>#ff007f</Outline>
      <Active>
         <Foreground>white</Foreground>
         <Background>#ff007f</Background>
      </Active>
   </TrayStyle>

   <PagerStyle>
      <Outline>black</Outline>
      <Foreground>gray90</Foreground>
      <Background>#808488</Background>
      <ActiveForeground>#70849d</ActiveForeground>
      <ActiveBackground>#2e3a67</ActiveBackground>
   </PagerStyle>

   <MenuStyle>
      <Font>Sans-8</Font>
      <Foreground>white</Foreground>
      <Background>#333333</Background>
      <Outline>#ff007f</Outline>
      <Corner>1</Corner>
      <ActiveForeground>#ff007f</ActiveForeground>
      <ActiveBackground>white</ActiveBackground>
      <Opacity>1</Opacity>
      <Decorations>flat</Decorations>
   </MenuStyle>

   <PopupStyle>
      <Enabled>false</Enabled>
      <Font>Sans-8</Font>
      <Outline>white</Outline>
      <Foreground>black</Foreground>
      <Background>yellow</Background>
   </PopupStyle>

   <IconPath>/home/chip/appIcons/</IconPath>

   <!-- Virtual Desktops -->
   <Desktops width="2" height="2">
      <Background type="solid">#666666</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>click</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>

   <!--
    <StartupCommand>gkrellm</StartupCommand>
   -->

   <!-- 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="SA" key="3">exec:xfce4-screenshooter -f -s /home/chip/Pictures</Key>

   <Key mask="C" key="Tab">next</Key>
   <Key mask="A" key="Tab">next</Key>

   <Key mask="C" key="w">close</Key>
   <Key mask="C" key="q">close</Key>

   <Key mask="C" key="Escape">root:1</Key>
   <Key key="XF86PowerOff">showdesktop</Key>

   <Key mask="S" key="Escape">window</Key>

   <Key mask="C" key="#">desktop#</Key>
   <Key mask="C" key="Enter">maximize</Key>

   <Key mask="C" key="Right">rdesktop</Key>
   <Key mask="C" key="Left">ldesktop</Key>
   <Key mask="C" key="Up">udesktop</Key>
   <Key mask="C" key="Down">ddesktop</Key>
</JWM>

Screenshot - 2020年11月14日 - 07时59分11秒.png

标签: none

添加新评论