我的jwm窗口管理器设置system.jwmrc

<?xml version="1.0"?>
<JWM>
   <!-- The root menu. -->
    <RootMenu>
        <Include>/etc/jwm/debian-menu</Include>
        <Program label="Terminal">xfce4-terminal</Program>
        <Program label="APPfinder">xfce4-appfinder</Program>
        <Program label="Xkill">xkill</Program>
        <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/vincent/.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 icon="system-shutdown.png" label="Shutdown">shutdown now</Program>
        <Program icon="system-reboot.png" 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="off">

        <TrayButton icon="/usr/share/jwm/jwm-red.svg">root:1</TrayButton>
        <Spacer width="2"/>
        <TrayButton label="__">showdesktop</TrayButton>
        <Spacer width="2"/>
		<TrayButton 
		icon="thunar.svg">exec:thunar</TrayButton>
        <Spacer width="2"/>
		<TrayButton 
		icon="firefox.svg">exec:firefox</TrayButton>
        <Spacer width="2"/>
		<TrayButton 
		icon="kodi.svg">exec:kodi</TrayButton>
        <Spacer width="2"/>
		<TrayButton 
		icon="hypnotix.svg">exec:hypnotix</TrayButton>
        <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>#555555</Background>
        <Outline>#000000</Outline>
        <Opacity>0.5</Opacity>
        <Active>
            <Foreground>#FFFFFF</Foreground>
            <Background>#0077CC</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/vincent/图片/Wallpapers-2560x1440/clay-banks-u27Rrbs9Dwc-unsplash.jpg</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:xfce4-terminal</Key>
    <Key mask="S" key="F1">exec:xfce4-appfinder</Key>
    <Key mask="S" key="u">exec:thunar</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>
    <Key mask="C" key="Left">ldesktop</Key>
    <Key mask="CA" key="Right">sendr</Key>
    <Key mask="CA" key="Left">sendl</Key>
  <!-- Autostart -->
    <StartupCommand>pulseaudio --start --daemonize=yes</StartupCommand>
    <StartupCommand>xset s 3600</StartupCommand>
    <StartupCommand>xset -dpms</StartupCommand>
    <StartupCommand>redshift</StartupCommand>


</JWM>

我多次学习官方文档,逐渐完善jwm配置,有几个亮点,

1.快捷键比较丰富,打开程序,窗口操作,桌面切换,解决了调节声音

2.有类似windows固定任务栏的效果

3.与conky,plank结合比较好

需要注意

我用的是mint xfce,里面用到我自己安装的苹果字体,conky配置,图标主题,安装了plank,不会简单复制过去就呈现一样的效果。

有些代码是有参考意义的,没有特别作注释。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值