example.jwmrc 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0"?>
  2. <JWM>
  3. <!-- The root menu. -->
  4. <RootMenu onroot="12">
  5. <Program icon="terminal.png" label="Terminal">xterm</Program>
  6. <Menu icon="folder.png" label="Applications">
  7. <Program icon="music.png" label="Audacious">audacious</Program>
  8. <Program icon="calculator.png" label="Calculator">xcalc</Program>
  9. <Program icon="gimp.png" label="Gimp">gimp</Program>
  10. <Program icon="www.png" label="Iceweasel">iceweasel</Program>
  11. <Program icon="editor.png" label="XEdit">xedit</Program>
  12. </Menu>
  13. <Menu icon="folder.png" label="Utilities">
  14. <Program icon="font.png" label="Fonts">xfontsel</Program>
  15. <Program icon="window.png" label="Window Properties">
  16. xprop | xmessage -file -
  17. </Program>
  18. </Menu>
  19. <Separator/>
  20. <Program icon="lock.png" label="Lock">
  21. xscreensaver-command -lock
  22. </Program>
  23. <Separator/>
  24. <Restart label="Restart" icon="restart.png"/>
  25. <Exit label="Exit" confirm="true" icon="quit.png"/>
  26. </RootMenu>
  27. <!-- Options for program groups. -->
  28. <Group>
  29. <Class>Pidgin</Class>
  30. <Option>sticky</Option>
  31. </Group>
  32. <Group>
  33. <Name>xterm</Name>
  34. <Option>vmax</Option>
  35. <Option>icon:terminal.png</Option>
  36. </Group>
  37. <Group>
  38. <Name>xedit</Name>
  39. <Option>icon:editor.png</Option>
  40. </Group>
  41. <Group>
  42. <Name>xcalc</Name>
  43. <Option>icon:calculator.png</Option>
  44. </Group>
  45. <!-- Tray at the bottom. -->
  46. <Tray x="0" y="-1" height="32" autohide="false">
  47. <TrayButton label="JWM">root:1</TrayButton>
  48. <TrayButton label="_">showdesktop</TrayButton>
  49. <Pager labeled="true"/>
  50. <TaskList maxwidth="256"/>
  51. <Dock/>
  52. <Clock>xclock</Clock>
  53. </Tray>
  54. <!-- Visual Styles -->
  55. <WindowStyle>
  56. <Font>FreeSans-9:bold</Font>
  57. <Width>4</Width>
  58. <Height>20</Height>
  59. <Active>
  60. <Text>#FFFFFF</Text>
  61. <Title>#CC7700:#884400</Title>
  62. <Outline>#000000</Outline>
  63. <Opacity>1.0</Opacity>
  64. </Active>
  65. <Inactive>
  66. <Text>#FFFFFF</Text>
  67. <Title>#333333:#111111</Title>
  68. <Outline>#000000</Outline>
  69. <Opacity>0.5:0.9:0.1</Opacity>
  70. </Inactive>
  71. </WindowStyle>
  72. <TrayStyle>
  73. <Font>FreeSans-12:bold</Font>
  74. <Background>#111111</Background>
  75. <Foreground>#FFFFFF</Foreground>
  76. <Opacity>0.75</Opacity>
  77. </TrayStyle>
  78. <TaskListStyle>
  79. <Font>FreeSans-12:bold</Font>
  80. <ActiveForeground>#FFFFFF</ActiveForeground>
  81. <ActiveBackground>#111111:#333333</ActiveBackground>
  82. <Foreground>#FFFFFF</Foreground>
  83. <Background>#333333:#111111</Background>
  84. </TaskListStyle>
  85. <PagerStyle>
  86. <Outline>#000000</Outline>
  87. <Text>#FFFFFF</Text>
  88. <Foreground>#444444</Foreground>
  89. <Background>#111111</Background>
  90. <ActiveForeground>#CC7700</ActiveForeground>
  91. <ActiveBackground>#884400</ActiveBackground>
  92. </PagerStyle>
  93. <MenuStyle>
  94. <Font>FreeSans-11</Font>
  95. <Foreground>#FFFFFF</Foreground>
  96. <Background>#333333</Background>
  97. <ActiveForeground>#FFFFFF</ActiveForeground>
  98. <ActiveBackground>#CC7700:#884400</ActiveBackground>
  99. <Opacity>0.85</Opacity>
  100. </MenuStyle>
  101. <PopupStyle>
  102. <Font>FreeSans-10</Font>
  103. <Outline>#000000</Outline>
  104. <Foreground>#000000</Foreground>
  105. <Background>#999999</Background>
  106. </PopupStyle>
  107. <!-- Path where icons can be found.
  108. IconPath can be listed multiple times to allow searching
  109. for icons in multiple paths.
  110. -->
  111. <IconPath>
  112. /usr/share/icons/wm-icons/32x32-gant
  113. </IconPath>
  114. <!-- Virtual Desktops -->
  115. <!-- Desktop tags can be contained within Desktops for desktop names. -->
  116. <Desktops width="2" height="1">
  117. <!-- Default background. Note that a Background tag can be
  118. contained within a Desktop tag to give a specific background
  119. for that desktop.
  120. -->
  121. <Background type="image">$HOME/images/bg.jpg</Background>
  122. </Desktops>
  123. <!-- Double click speed (in milliseconds) -->
  124. <DoubleClickSpeed>400</DoubleClickSpeed>
  125. <!-- Double click delta (in pixels) -->
  126. <DoubleClickDelta>2</DoubleClickDelta>
  127. <!-- The focus model (sloppy or click) -->
  128. <FocusModel>sloppy</FocusModel>
  129. <!-- The snap mode (none, screen, or border) -->
  130. <SnapMode distance="10">border</SnapMode>
  131. <!-- The move mode (outline or opaque) -->
  132. <MoveMode>opaque</MoveMode>
  133. <!-- The resize mode (outline or opaque) -->
  134. <ResizeMode>opaque</ResizeMode>
  135. <!-- Key bindings -->
  136. <Key key="Up">up</Key>
  137. <Key key="Down">down</Key>
  138. <Key key="Right">right</Key>
  139. <Key key="Left">left</Key>
  140. <Key key="h">left</Key>
  141. <Key key="j">down</Key>
  142. <Key key="k">up</Key>
  143. <Key key="l">right</Key>
  144. <Key key="Return">select</Key>
  145. <Key key="Escape">escape</Key>
  146. <Key mask="A" key="Tab">nextstacked</Key>
  147. <Key mask="A" key="F4">close</Key>
  148. <Key mask="A" key="#">desktop#</Key>
  149. <Key mask="A" key="F1">root:1</Key>
  150. <Key mask="A" key="F2">window</Key>
  151. <Key mask="A" key="F10">maximize</Key>
  152. <Key mask="A" key="Right">rdesktop</Key>
  153. <Key mask="A" key="Left">ldesktop</Key>
  154. <Key mask="A" key="Up">udesktop</Key>
  155. <Key mask="A" key="Down">ddesktop</Key>
  156. </JWM>