.jwmrc 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <?xml version="1.0"?>
  2. <JWM>
  3. <!--
  4. A decent JWM config for a usable desktop with proper icons and standard shortcuts.
  5. Check the readme.md file to see instructions on how to install, use, requirements
  6. info, common keyboard shortcuts etc.
  7. Config:
  8. - Some apps are configured with the apps I had installed (please change as necessary, e.g. file manager, text editor, terminal etc.)
  9. -->
  10. <!-- The root menu. -->
  11. <RootMenu onroot="1" height="22">
  12. <!--<Include>/etc/jwm/debian-menu</Include>-->
  13. <Program icon="terminal.svg" label="Terminal">qterminal</Program>
  14. <Program icon="system-file-manager.svg" label="File Manager">pcmanfm-qt</Program>
  15. <Program icon="icecat.svg" label="Iceweasel">iceweasel</Program>
  16. <Program icon="icecat.svg" label="Iceweasel (private window)">iceweasel --private-window</Program>
  17. <Program icon="leafpad.svg" label="Leafpad">leafpad</Program>
  18. <Separator/>
  19. <Menu icon="chromium-app-list.svg" label="Programs">
  20. <Include>exec: xdgmenumaker -n -i -f jwm</Include>
  21. </Menu>
  22. <Separator/>
  23. <Program icon="lock.png" label="Lock">
  24. xlock -mode blank
  25. </Program>
  26. <Separator/>
  27. <Restart label="Restart JWM" icon="restart.png"/>
  28. <Program icon="" label="Power...">~/.local/share/jwm-config/power.sh</Program>
  29. </RootMenu>
  30. <RootMenu onroot="3" height="25">
  31. <Program icon="network-defaultroute.svg" label="Network Connections...">nm-connection-editor</Program>
  32. <Separator/>
  33. <Program icon="nitrogen.svg" label="Change Wallpaper...">nitrogen ~/Pictures</Program>
  34. </RootMenu>
  35. <!-- Options for program groups. -->
  36. <!-- Config note: You can change and adopt as necessary -->
  37. <Group>
  38. <Class>Pidgin</Class>
  39. <Option>sticky</Option>
  40. </Group>
  41. <Group>
  42. <Name>xterm</Name>
  43. <Option>vmax</Option>
  44. </Group>
  45. <Group>
  46. <Name>xclock</Name>
  47. <Option>drag</Option>
  48. <Option>notitle</Option>
  49. </Group>
  50. <!-- Tray at the bottom. -->
  51. <Tray x="0" y="-1" height="30" autohide="off">
  52. <TrayButton icon="chrome-app-list.svg">root:1</TrayButton>
  53. <Spacer width="5"/>
  54. <!-- Config note: You can add your apps for quick launch area. -->
  55. <TrayButton label="" icon="terminal.svg">exec:qterminal</TrayButton>
  56. <TrayButton label="" icon="dde-file-manager.svg">exec:pcmanfm-qt</TrayButton>
  57. <TrayButton label="" icon="leafpad.svg">exec:leafpad</TrayButton>
  58. <TrayButton label="" icon="cuttlefish.svg">exec:textadept</TrayButton>
  59. <Spacer width="10"/>
  60. <!-- Config note: You can uncomment this to get a pager (multiple desktops) -->
  61. <!-- <Pager labeled="true"/> -->
  62. <TaskList maxwidth="256"/>
  63. <Spacer width="10"/>
  64. <Dock/>
  65. <Clock format="%H:%M"><Button mask="123">exec:gsimplecal</Button></Clock>
  66. <TrayButton label="" popup="Show Desktop" icon="folder-black-desktop.svg">showdesktop</TrayButton>
  67. </Tray>
  68. <!-- Visual Styles -->
  69. <WindowStyle>
  70. <Font>Sans-11:bold</Font>
  71. <Width>5</Width>
  72. <Height>26</Height>
  73. <Corner>4</Corner>
  74. <Foreground>#DDDDDD</Foreground>
  75. <Background>#555555</Background>
  76. <Outline>#000000</Outline>
  77. <Opacity>0.5</Opacity>
  78. <Active>
  79. <Foreground>#FFFFFF</Foreground>
  80. <Background>#0077CC</Background>
  81. <Outline>#000000</Outline>
  82. <Opacity>1.0</Opacity>
  83. </Active>
  84. </WindowStyle>
  85. <TrayStyle group="false" list="all">
  86. <Font>Sans-9</Font>
  87. <Background>#333333</Background>
  88. <Foreground>#FFFFFF</Foreground>
  89. <Outline>#000000</Outline>
  90. <Opacity>0.75</Opacity>
  91. </TrayStyle>
  92. <PagerStyle>
  93. <Outline>#222222</Outline>
  94. <Foreground>#555555</Foreground>
  95. <Background>#333333</Background>
  96. <Text>#FFFFFF</Text>
  97. <Active>
  98. <Foreground>#0077CC</Foreground>
  99. <Background>#004488</Background>
  100. </Active>
  101. </PagerStyle>
  102. <MenuStyle>
  103. <Font>Sans-9</Font>
  104. <Foreground>#FFFFFF</Foreground>
  105. <Background>#333333</Background>
  106. <Outline>#222222</Outline>
  107. <Active>
  108. <Foreground>#FFFFFF</Foreground>
  109. <Background>#0077CC</Background>
  110. </Active>
  111. <Opacity>0.85</Opacity>
  112. </MenuStyle>
  113. <PopupStyle>
  114. <Font>Sans-10</Font>
  115. <Foreground>#AAAAAA</Foreground>
  116. <Background>#222222</Background>
  117. <Outline>#222222</Outline>
  118. </PopupStyle>
  119. <!-- Path where icons can be found.
  120. IconPath can be listed multiple times to allow searching
  121. for icons in multiple paths.
  122. -->
  123. <IconPath>/usr/share/icons/Papirus/32x32/emblems</IconPath>
  124. <IconPath>/usr/share/icons/Papirus/32x32/apps</IconPath>
  125. <IconPath>/usr/share/icons/Papirus/32x32/places</IconPath>
  126. <IconPath>/usr/share/icons/gnome/256x256/actions</IconPath>
  127. <IconPath>/usr/share/icons/gnome/256x256/apps</IconPath>
  128. <IconPath>/usr/share/icons/gnome/256x256/categories</IconPath>
  129. <IconPath>/usr/share/icons/gnome/256x256/devices</IconPath>
  130. <IconPath>/usr/share/icons/gnome/256x256/emblems</IconPath>
  131. <IconPath>/usr/share/icons/gnome/256x256/mimetypes</IconPath>
  132. <IconPath>/usr/share/icons/gnome/256x256/places</IconPath>
  133. <IconPath>/usr/share/icons/gnome/256x256/status</IconPath>
  134. <IconPath>/usr/share/icons/gnome/32x32/actions</IconPath>
  135. <IconPath>/usr/share/icons/gnome/32x32/animations</IconPath>
  136. <IconPath>/usr/share/icons/gnome/32x32/apps</IconPath>
  137. <IconPath>/usr/share/icons/gnome/32x32/categories</IconPath>
  138. <IconPath>/usr/share/icons/gnome/32x32/devices</IconPath>
  139. <IconPath>/usr/share/icons/gnome/32x32/emblems</IconPath>
  140. <IconPath>/usr/share/icons/gnome/32x32/mimetypes</IconPath>
  141. <IconPath>/usr/share/icons/gnome/32x32/places</IconPath>
  142. <IconPath>/usr/share/icons/gnome/32x32/status</IconPath>
  143. <IconPath>/usr/share/icons/gnome/scalable/actions</IconPath>
  144. <IconPath>/usr/share/icons/gnome/scalable/apps</IconPath>
  145. <IconPath>/usr/share/icons/gnome/scalable/categories</IconPath>
  146. <IconPath>/usr/share/icons/gnome/scalable/devices</IconPath>
  147. <IconPath>/usr/share/icons/gnome/scalable/emblems</IconPath>
  148. <IconPath>/usr/share/icons/gnome/scalable/mimetypes</IconPath>
  149. <IconPath>/usr/share/icons/gnome/scalable/places</IconPath>
  150. <IconPath>/usr/share/icons/gnome/scalable/status</IconPath>
  151. <IconPath>/usr/share/icons/hicolor/256x256/apps</IconPath>
  152. <IconPath>/usr/share/icons/hicolor/256x256/mimetypes</IconPath>
  153. <IconPath>/usr/share/icons/hicolor/32x32/actions</IconPath>
  154. <IconPath>/usr/share/icons/hicolor/32x32/apps</IconPath>
  155. <IconPath>/usr/share/icons/hicolor/32x32/categories</IconPath>
  156. <IconPath>/usr/share/icons/hicolor/32x32/devices</IconPath>
  157. <IconPath>/usr/share/icons/hicolor/32x32/emblems</IconPath>
  158. <IconPath>/usr/share/icons/hicolor/32x32/mimetypes</IconPath>
  159. <IconPath>/usr/share/icons/hicolor/32x32/status</IconPath>
  160. <IconPath>/usr/share/icons/hicolor/512x512/apps</IconPath>
  161. <IconPath>/usr/share/icons/hicolor/512x512/mimetypes</IconPath>
  162. <IconPath>/usr/share/icons/hicolor/scalable/actions</IconPath>
  163. <IconPath>/usr/share/icons/hicolor/scalable/apps</IconPath>
  164. <IconPath>/usr/share/icons/hicolor/scalable/categories</IconPath>
  165. <IconPath>/usr/share/icons/hicolor/scalable/devices</IconPath>
  166. <IconPath>/usr/share/icons/hicolor/scalable/emblems</IconPath>
  167. <IconPath>/usr/share/icons/hicolor/scalable/mimetypes</IconPath>
  168. <IconPath>/usr/share/icons/hicolor/scalable/places</IconPath>
  169. <IconPath>/usr/share/icons/hicolor/scalable/status</IconPath>
  170. <IconPath>/usr/share/icons</IconPath>
  171. <IconPath>/usr/share/pixmaps</IconPath>
  172. <IconPath>
  173. /usr/local/share/jwm
  174. </IconPath>
  175. <!-- Virtual Desktops -->
  176. <!-- Desktop tags can be contained within Desktops for desktop names. -->
  177. <Desktops width="4" height="1">
  178. <!-- Default background. Note that a Background tag can be
  179. contained within a Desktop tag to give a specific background
  180. for that desktop.
  181. -->
  182. <Background type="solid">#111111</Background>
  183. </Desktops>
  184. <!-- Double click speed (in milliseconds) -->
  185. <DoubleClickSpeed>400</DoubleClickSpeed>
  186. <!-- Double click delta (in pixels) -->
  187. <DoubleClickDelta>2</DoubleClickDelta>
  188. <!-- The focus model (sloppy or click) -->
  189. <FocusModel>click</FocusModel>
  190. <!-- The snap mode (none, screen, or border) -->
  191. <SnapMode distance="10">border</SnapMode>
  192. <!-- The move mode (outline or opaque) -->
  193. <MoveMode>opaque</MoveMode>
  194. <!-- The resize mode (outline or opaque) -->
  195. <ResizeMode>opaque</ResizeMode>
  196. <!-- Key bindings -->
  197. <Key key="Up">up</Key>
  198. <Key key="Down">down</Key>
  199. <Key key="Right">right</Key>
  200. <Key key="Left">left</Key>
  201. <Key key="h">left</Key>
  202. <Key key="j">down</Key>
  203. <Key key="k">up</Key>
  204. <Key key="l">right</Key>
  205. <Key key="Return">select</Key>
  206. <Key key="Escape">escape</Key>
  207. <Key mask="A" key="Tab">nextstacked</Key>
  208. <Key mask="A" key="F4">close</Key>
  209. <Key mask="A" key="#">desktop#</Key>
  210. <Key mask="A" key="F1">root:1</Key>
  211. <Key mask="A" key="F2">exec:rofi -show run</Key>
  212. <Key mask="4" key="R">exec:rofi -show run</Key>
  213. <Key mask="A" key="F3">root:1</Key>
  214. <Key mask="A" key="space">window</Key>
  215. <Key mask="A" key="F10">maximize</Key>
  216. <Key mask="CA" key="Right">rdesktop</Key>
  217. <Key mask="4" key="Tab">rdesktop</Key>
  218. <Key mask="CA" key="Left">ldesktop</Key>
  219. <Key mask="CA" key="Up">udesktop</Key>
  220. <Key mask="CA" key="Down">ddesktop</Key>
  221. <Key mask="CA" key="D">showdesktop</Key>
  222. <Key mask="4" key="D">showdesktop</Key>
  223. <Key mask="CA" key="T">exec:qterminal</Key>
  224. <Key mask="CA" key="E">exec:pcmanfm-qt</Key>
  225. <Key mask="4" key="E">exec:pcmanfm-qt</Key>
  226. <Key mask="" key="F12">exec:rofi -show run</Key>
  227. <!-- Connect to external monitor / choose screens -->
  228. <Key mask="4" key="P">exec:~/.local/share/jwm-config/screens.sh</Key>
  229. <Key mask="" key="XF86Display">exec:~/.local/share/jwm-config/screens.sh</Key>
  230. <Key mask="4" key="F4">exec:~/.local/share/jwm-config/power.sh</Key>
  231. <Key mask="CAS" key="R">exec:jwm -restart</Key>
  232. <Key mask="CA" key="L">exec:xlock -mode blank</Key>
  233. <Key mask="4" key="L">exec:xlock -mode blank</Key>
  234. <!-- startup -->
  235. <StartupCommand>
  236. <!-- rofi -key-run F12 & -->
  237. nitrogen --restore &
  238. ~/.local/share/jwm-config/batteryicon.sh &amp;
  239. volumeicon &amp;
  240. nm-applet &amp;
  241. <!--
  242. Config note: You can change "Alt_L|F1" to anything else.
  243. For example, 'Super_L=Alt_L|F1' opens the main menu,
  244. 'Super_L=Alt_L|F2' would open the run option.
  245. -->
  246. ksuperkey -e 'Super_L=Alt_L|F1' &amp;
  247. <!-- Start notification manager -->
  248. <!-- Any can be chosen from: https://wiki.archlinux.org/index.php/Desktop_notifications#Standalone -->
  249. lxqt-notificationd &amp;
  250. </StartupCommand>
  251. </JWM>