rc.xml 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302
  1. <?xml version="1.0"?>
  2. <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
  3. <resistance>
  4. <strength>10</strength>
  5. <screen_edge_strength>20</screen_edge_strength>
  6. </resistance>
  7. <focus>
  8. <focusNew>yes</focusNew>
  9. <!-- always try to focus new windows when they appear. other rules do
  10. apply -->
  11. <followMouse>no</followMouse>
  12. <!-- move focus to a window when you move the mouse into it -->
  13. <focusLast>yes</focusLast>
  14. <!-- focus the last used window when changing desktops, instead of the one
  15. under the mouse pointer. when followMouse is enabled -->
  16. <underMouse>no</underMouse>
  17. <!-- move focus under the mouse, even when the mouse is not moving -->
  18. <focusDelay>200</focusDelay>
  19. <!-- when followMouse is enabled, the mouse must be inside the window for
  20. this many milliseconds (1000 = 1 sec) before moving focus to it -->
  21. <raiseOnFocus>no</raiseOnFocus>
  22. <!-- when followMouse is enabled, and a window is given focus by moving the
  23. mouse into it, also raise the window -->
  24. </focus>
  25. <placement>
  26. <policy>Smart</policy>
  27. <!-- 'Smart' or 'UnderMouse' -->
  28. <center>yes</center>
  29. <!-- whether to place windows in the center of the free area found or
  30. the top left corner -->
  31. <monitor>Any</monitor>
  32. <!-- with Smart placement on a multi-monitor system, try to place new windows
  33. on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
  34. the active window is -->
  35. <primaryMonitor/>
  36. </placement>
  37. <theme>
  38. <name>Nxpro</name>
  39. <titleLayout>ILM</titleLayout>
  40. <!--
  41. available characters are NDSLIMC, each can occur at most once.
  42. N: window icon
  43. L: window label (AKA title).
  44. I: iconify
  45. M: maximize
  46. C: close
  47. S: shade (roll up/down)
  48. D: omnipresent (on all desktops).
  49. -->
  50. <keepBorder>yes</keepBorder>
  51. <animateIconify>no</animateIconify>
  52. <font place="ActiveWindow">
  53. <name>Ubuntu</name>
  54. <size>12</size>
  55. <!-- font size in points -->
  56. <weight>Bold</weight>
  57. <!-- 'bold' or 'normal' -->
  58. <slant>Normal</slant>
  59. <!-- 'italic' or 'normal' -->
  60. </font>
  61. <font place="InactiveWindow">
  62. <name>Ubuntu</name>
  63. <size>11</size>
  64. <!-- font size in points -->
  65. <weight>Bold</weight>
  66. <!-- 'bold' or 'normal' -->
  67. <slant>Normal</slant>
  68. <!-- 'italic' or 'normal' -->
  69. </font>
  70. <font place="MenuHeader">
  71. <name>Ubuntu</name>
  72. <size>12</size>
  73. <!-- font size in points -->
  74. <weight>Normal</weight>
  75. <!-- 'bold' or 'normal' -->
  76. <slant>Italic</slant>
  77. <!-- 'italic' or 'normal' -->
  78. </font>
  79. <font place="MenuItem">
  80. <name>Ubuntu</name>
  81. <size>11</size>
  82. <!-- font size in points -->
  83. <weight>Normal</weight>
  84. <!-- 'bold' or 'normal' -->
  85. <slant>Normal</slant>
  86. <!-- 'italic' or 'normal' -->
  87. </font>
  88. <!--font place="OnScreenActiveDisplay">
  89. <name>Sans</name>
  90. <size>10</size>
  91. <weight/>
  92. <slant/>
  93. </font>
  94. <font place="OnScreenIactiveDisplay">
  95. <name>Sans</name>
  96. <size>8</size>
  97. <weight/>
  98. <slant/>
  99. </font>
  100. <font place="ActiveOnScreenDisplay">
  101. <name>Ubuntu Light</name>
  102. <size>9</size>
  103. <weight>Bold</weight>
  104. <slant>Normal</slant>
  105. </font>
  106. <font place="InactiveOnScreenDisplay">
  107. <name>Sans</name>
  108. <size>8</size>
  109. <weight/>
  110. <slant/>
  111. </font-->
  112. <font place="ActiveOnScreenDisplay">
  113. <name>Sans</name>
  114. <size>12</size>
  115. <weight>Normal</weight>
  116. <slant>Normal</slant>
  117. </font>
  118. <font place="InactiveOnScreenDisplay">
  119. <name>Sans</name>
  120. <size>11</size>
  121. <weight>Normal</weight>
  122. <slant>Normal</slant>
  123. </font>
  124. </theme>
  125. <desktops>
  126. <!-- this stuff is only used at startup, pagers allow you to change them
  127. during a session
  128. these are default values to use when other ones are not already set
  129. by other applications, or saved in your session
  130. use obconf if you want to change these without having to log out
  131. and back in -->
  132. <number>2</number>
  133. <firstdesk>1</firstdesk>
  134. <names>
  135. <!-- set names up here if you want to, like this:-->
  136. <name>desk1</name>
  137. <name>desk2</name>
  138. </names>
  139. <popupTime>875</popupTime>
  140. <!-- The number of milliseconds to show the popup for when switching
  141. desktops. Set this to 0 to disable the popup. -->
  142. </desktops>
  143. <resize>
  144. <drawContents>yes</drawContents>
  145. <popupShow>Always</popupShow>
  146. <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  147. <popupPosition>Center</popupPosition>
  148. <!-- 'Center', 'Top', or 'Fixed' -->
  149. <popupFixedPosition>
  150. <!-- these are used if popupPosition is set to 'Fixed' -->
  151. <x>10</x>
  152. <!-- positive number for distance from left edge, negative number for
  153. distance from right edge, or 'Center' -->
  154. <y>10</y>
  155. <!-- positive number for distance from top edge, negative number for
  156. distance from bottom edge, or 'Center' -->
  157. </popupFixedPosition>
  158. </resize>
  159. <!-- You can reserve a portion of your screen where windows will not cover when
  160. they are maximized, or when they are initially placed.
  161. Many programs reserve space automatically, but you can use this in other
  162. cases. -->
  163. <margins>
  164. <top>0</top>
  165. <bottom>1</bottom>
  166. <left>0</left>
  167. <right>0</right>
  168. </margins>
  169. <dock>
  170. <position>TopLeft</position>
  171. <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  172. <floatingX>0</floatingX>
  173. <floatingY>0</floatingY>
  174. <noStrut>no</noStrut>
  175. <stacking>Above</stacking>
  176. <!-- 'Above', 'Normal', or 'Below' -->
  177. <direction>Vertical</direction>
  178. <!-- 'Vertical' or 'Horizontal' -->
  179. <autoHide>no</autoHide>
  180. <hideDelay>300</hideDelay>
  181. <!-- in milliseconds (1000 = 1 second) -->
  182. <showDelay>300</showDelay>
  183. <!-- in milliseconds (1000 = 1 second) -->
  184. <moveButton>Middle</moveButton>
  185. <!-- 'Left', 'Middle', 'Right' -->
  186. </dock>
  187. <keyboard>
  188. <chainQuitKey>C-g</chainQuitKey>
  189. <keybind key="W-n">
  190. <action name="DesktopNext"/>
  191. </keybind>
  192. <keybind key="A-W-n">
  193. <action name="SendToDesktopNext"/>
  194. </keybind>
  195. <keybind key="W-F1">
  196. <action name="Desktop"/>
  197. </keybind>
  198. <keybind key="W-F2">
  199. <action name="Desktop">
  200. <desktop>2</desktop>
  201. </action>
  202. </keybind>
  203. <keybind key="W-F3">
  204. <action name="Desktop">
  205. <desktop>3</desktop>
  206. </action>
  207. </keybind>
  208. <keybind key="W-F4">
  209. <action name="Desktop">
  210. <desktop>4</desktop>
  211. </action>
  212. </keybind>
  213. <keybind key="W-t">
  214. <keybind key="W-c">
  215. <action name="Close"/>
  216. </keybind>
  217. </keybind>
  218. <keybind key="W-r">
  219. <action name="ToggleShowDesktop"/>
  220. </keybind>
  221. <keybind key="W-i">
  222. <action name="Iconify"/>
  223. </keybind>
  224. <keybind key="S-W-t">
  225. <action name="ToggleDecorations"/>
  226. </keybind>
  227. <keybind key="W-o">
  228. <action name="ToggleAlwaysOnTop"/>
  229. </keybind>
  230. <keybind key="W-x">
  231. <action name="ToggleMaximize"/>
  232. </keybind>
  233. <keybind key="W-v">
  234. <action name="ToggleMaximizeVert"/>
  235. </keybind>
  236. <keybind key="W-z">
  237. <action name="ToggleMaximizeHorz"/>
  238. </keybind>
  239. <keybind key="W-f">
  240. <action name="ToggleFullscreen"/>
  241. </keybind>
  242. <keybind key="C-W-Left">
  243. <action name="MoveToEdgeWest"/>
  244. </keybind>
  245. <keybind key="C-W-Right">
  246. <action name="MoveToEdgeEast"/>
  247. </keybind>
  248. <keybind key="C-W-Up">
  249. <action name="MoveToEdgeNorth"/>
  250. </keybind>
  251. <keybind key="C-W-Down">
  252. <action name="MoveToEdgeSouth"/>
  253. </keybind>
  254. <keybind key="W-Left">
  255. <action name="MoveRelative">
  256. <x>-5</x>
  257. </action>
  258. </keybind>
  259. <keybind key="W-Right">
  260. <action name="MoveRelative">
  261. <x>5</x>
  262. </action>
  263. </keybind>
  264. <keybind key="W-Up">
  265. <action name="MoveRelative">
  266. <y>-5</y>
  267. </action>
  268. </keybind>
  269. <keybind key="W-Down">
  270. <action name="MoveRelative">
  271. <y>5</y>
  272. </action>
  273. </keybind>
  274. <keybind key="S-W-Left">
  275. <action name="UnmaximizeFull"/>
  276. <action name="MoveToEdgeWest"/>
  277. <action name="MaximizeVert"/>
  278. <action name="MoveResizeTo">
  279. <width>50%</width>
  280. </action>
  281. </keybind>
  282. <keybind key="S-W-Right">
  283. <action name="UnmaximizeFull"/>
  284. <action name="MoveToEdgeEast"/>
  285. <action name="MaximizeVert"/>
  286. <action name="MoveResizeTo">
  287. <width>50%</width>
  288. </action>
  289. </keybind>
  290. <keybind key="S-W-Up">
  291. <action name="UnmaximizeFull"/>
  292. <action name="MoveToEdgeNorth"/>
  293. <action name="MaximizeHorz"/>
  294. <action name="MoveResizeTo">
  295. <height>50%</height>
  296. </action>
  297. </keybind>
  298. <keybind key="S-W-Down">
  299. <action name="UnmaximizeFull"/>
  300. <action name="MoveToEdgeSouth"/>
  301. <action name="MaximizeHorz"/>
  302. <action name="MoveResizeTo">
  303. <height>50%</height>
  304. </action>
  305. </keybind>
  306. <keybind key="W-S-c">
  307. <action name="MoveToCenter"/>
  308. </keybind>
  309. <keybind chroot="yes" key="W-A-z">
  310. <keybind chroot="yes" key="p">
  311. <keybind key="XF86AudioRaiseVolume">
  312. <action name="ResizeRelative">
  313. <top>5</top>
  314. </action>
  315. </keybind>
  316. <keybind key="XF86AudioLowerVolume">
  317. <action name="ResizeRelative">
  318. <top>-5</top>
  319. </action>
  320. </keybind>
  321. <keybind key="Escape">
  322. <action name="BreakChroot"/>
  323. </keybind>
  324. </keybind>
  325. <keybind chroot="yes" key="Up">
  326. <keybind key="XF86AudioRaiseVolume">
  327. <action name="ResizeRelative">
  328. <top>5</top>
  329. </action>
  330. </keybind>
  331. <keybind key="XF86AudioLowerVolume">
  332. <action name="ResizeRelative">
  333. <top>-5</top>
  334. </action>
  335. </keybind>
  336. <keybind key="Escape">
  337. <action name="BreakChroot"/>
  338. </keybind>
  339. </keybind>
  340. <keybind chroot="yes" key="n">
  341. <keybind key="XF86AudioRaiseVolume">
  342. <action name="ResizeRelative">
  343. <bottom>5</bottom>
  344. </action>
  345. </keybind>
  346. <keybind key="XF86AudioLowerVolume">
  347. <action name="ResizeRelative">
  348. <bottom>-5</bottom>
  349. </action>
  350. </keybind>
  351. <keybind key="Escape">
  352. <action name="BreakChroot"/>
  353. </keybind>
  354. </keybind>
  355. <keybind chroot="yes" key="Down">
  356. <keybind key="XF86AudioRaiseVolume">
  357. <action name="ResizeRelative">
  358. <bottom>5</bottom>
  359. </action>
  360. </keybind>
  361. <keybind key="XF86AudioLowerVolume">
  362. <action name="ResizeRelative">
  363. <bottom>-5</bottom>
  364. </action>
  365. </keybind>
  366. <keybind key="Escape">
  367. <action name="BreakChroot"/>
  368. </keybind>
  369. </keybind>
  370. <keybind chroot="yes" key="b">
  371. <keybind key="XF86AudioRaiseVolume">
  372. <action name="ResizeRelative">
  373. <left>5</left>
  374. </action>
  375. </keybind>
  376. <keybind key="XF86AudioLowerVolume">
  377. <action name="ResizeRelative">
  378. <left>-5</left>
  379. </action>
  380. </keybind>
  381. <keybind key="Escape">
  382. <action name="BreakChroot"/>
  383. </keybind>
  384. </keybind>
  385. <keybind chroot="yes" key="Left">
  386. <keybind key="XF86AudioRaiseVolume">
  387. <action name="ResizeRelative">
  388. <left>5</left>
  389. </action>
  390. </keybind>
  391. <keybind key="XF86AudioLowerVolume">
  392. <action name="ResizeRelative">
  393. <left>-5</left>
  394. </action>
  395. </keybind>
  396. <keybind key="Escape">
  397. <action name="BreakChroot"/>
  398. </keybind>
  399. </keybind>
  400. <keybind chroot="yes" key="f">
  401. <keybind key="XF86AudioRaiseVolume">
  402. <action name="ResizeRelative">
  403. <right>5</right>
  404. </action>
  405. </keybind>
  406. <keybind key="XF86AudioLowerVolume">
  407. <action name="ResizeRelative">
  408. <right>-5</right>
  409. </action>
  410. </keybind>
  411. <keybind key="Escape">
  412. <action name="BreakChroot"/>
  413. </keybind>
  414. </keybind>
  415. <keybind chroot="yes" key="Right">
  416. <keybind key="XF86AudioRaiseVolume">
  417. <action name="ResizeRelative">
  418. <right>5</right>
  419. </action>
  420. </keybind>
  421. <keybind key="XF86AudioLowerVolume">
  422. <action name="ResizeRelative">
  423. <right>-5</right>
  424. </action>
  425. </keybind>
  426. <keybind key="Escape">
  427. <action name="BreakChroot"/>
  428. </keybind>
  429. </keybind>
  430. <keybind key="Escape">
  431. <action name="BreakChroot"/>
  432. </keybind>
  433. </keybind>
  434. <keybind key="W-space">
  435. <action name="ShowMenu">
  436. <menu>client-menu</menu>
  437. </action>
  438. </keybind>
  439. <keybind key="W-c">
  440. <action name="NextWindow"/>
  441. </keybind>
  442. <keybind key="W-b">
  443. <action name="NextWindow"/>
  444. </keybind>
  445. <keybind key="W-M-b">
  446. <action name="NextWindow"/>
  447. </keybind>
  448. <keybind key="W-Tab">
  449. <action name="NextWindow">
  450. <dialog>no</dialog>
  451. <allDesktops>yes</allDesktops>
  452. </action>
  453. </keybind>
  454. <keybind key="S-W-Tab">
  455. <action name="PreviousWindow">
  456. <allDesktops>yes</allDesktops>
  457. </action>
  458. </keybind>
  459. <keybind key="W-l">
  460. <action name="ShowMenu">
  461. <menu>client-menu</menu>
  462. </action>
  463. </keybind>
  464. <keybind key="W-w">
  465. <action name="ShowMenu">
  466. <menu>client-list-combined-menu</menu>
  467. </action>
  468. </keybind>
  469. <keybind key="W-M-w">
  470. <action name="ShowMenu">
  471. <menu>client-list-combined-menu</menu>
  472. </action>
  473. </keybind>
  474. <keybind key="C-Escape">
  475. <action name="Execute">
  476. <command>lxpanelctl menu</command>
  477. </action>
  478. </keybind>
  479. <keybind key="A-C-Delete">
  480. <action name="Execute">
  481. <command>lxtask</command>
  482. </action>
  483. </keybind>
  484. <!-- Controlling sound volume -->
  485. <keybind key="XF86AudioRaiseVolume">
  486. <action name="Execute">
  487. <command>osd-sound sset Master 3%+</command>
  488. </action>
  489. </keybind>
  490. <keybind key="XF86AudioLowerVolume">
  491. <action name="Execute">
  492. <command>osd-sound sset Master 3%-</command>
  493. </action>
  494. </keybind>
  495. <keybind key="C-XF86AudioRaiseVolume">
  496. <action name="Execute">
  497. <command>osd-sound sset Line 3%+</command>
  498. </action>
  499. </keybind>
  500. <keybind key="C-XF86AudioLowerVolume">
  501. <action name="Execute">
  502. <command>osd-sound sset Line 3%-</command>
  503. </action>
  504. </keybind>
  505. <keybind key="A-XF86AudioRaiseVolume">
  506. <action name="Execute">
  507. <command>osd-sound sset Master 10%+</command>
  508. </action>
  509. </keybind>
  510. <keybind key="A-XF86AudioLowerVolume">
  511. <action name="Execute">
  512. <command>osd-sound sset Master 10%-</command>
  513. </action>
  514. </keybind>
  515. <keybind key="A-C-XF86AudioRaiseVolume">
  516. <action name="Execute">
  517. <command>osd-sound sset Master 60%</command>
  518. </action>
  519. </keybind>
  520. <keybind key="A-C-XF86AudioLowerVolume">
  521. <action name="Execute">
  522. <command>osd-sound sset Master 20%</command>
  523. </action>
  524. </keybind>
  525. <keybind key="Mod3-Escape">
  526. <action name="Execute">
  527. <command>hide-osds</command>
  528. </action>
  529. </keybind>
  530. <keybind key="XF86AudioMute">
  531. <action name="Execute">
  532. <command>osd-sound sset Master toggle</command>
  533. </action>
  534. </keybind>
  535. <!-- Controlling EMMS -->
  536. <keybind key="C-XF86AudioPlay">
  537. <action name="Execute">
  538. <command>emacsclient -s server-emms --eval '(emms-play-file "~/docs/audio/grass.wav")'</command>
  539. </action>
  540. </keybind>
  541. <keybind key="XF86AudioPlay">
  542. <action name="Execute">
  543. <command>emacsclient -s server-emms --eval '(emms-pause)'</command>
  544. </action>
  545. </keybind>
  546. <keybind key="XF86AudioStop">
  547. <action name="Execute">
  548. <command>emacsclient -s server-emms --eval '(emms-pause)'</command>
  549. </action>
  550. </keybind>
  551. <keybind key="W-XF86AudioStop">
  552. <action name="Execute">
  553. <command>emacsclient -s server-emms --eval '(emms-stop)'</command>
  554. </action>
  555. </keybind>
  556. <keybind key="Mod3-XF86AudioStop">
  557. <action name="Execute">
  558. <command>emacsclient -s server-emms --eval '(emms-stop)'</command>
  559. </action>
  560. </keybind>
  561. <keybind key="W-XF86AudioPrev">
  562. <action name="Execute">
  563. <command>emacsclient -s server-emms --eval '(emms-previous)'</command>
  564. </action>
  565. </keybind>
  566. <keybind key="Mod3-XF86AudioPrev">
  567. <action name="Execute">
  568. <command>emacsclient -s server-emms --eval '(emms-previous)'</command>
  569. </action>
  570. </keybind>
  571. <keybind key="W-XF86AudioNext">
  572. <action name="Execute">
  573. <command>emacsclient -s server-emms --eval '(emms-next)'</command>
  574. </action>
  575. </keybind>
  576. <keybind key="Mod3-XF86AudioNext">
  577. <action name="Execute">
  578. <command>emacsclient -s server-emms --eval '(emms-next)'</command>
  579. </action>
  580. </keybind>
  581. <keybind key="W-XF86AudioPlay">
  582. <action name="Execute">
  583. <command>emacsclient -s server-emms --eval '(emms-first)'</command>
  584. </action>
  585. </keybind>
  586. <keybind key="Mod3-XF86AudioPlay">
  587. <action name="Execute">
  588. <command>emacsclient -s server-emms --eval '(emms-first)'</command>
  589. </action>
  590. </keybind>
  591. <keybind key="XF86AudioPrev">
  592. <action name="Execute">
  593. <command>emacsclient -s server-emms --eval '(al/emms-seek-backward 10)'</command>
  594. </action>
  595. </keybind>
  596. <keybind key="XF86AudioNext">
  597. <action name="Execute">
  598. <command>emacsclient -s server-emms --eval '(al/emms-seek-forward 10)'</command>
  599. </action>
  600. </keybind>
  601. <keybind key="C-XF86AudioPrev">
  602. <action name="Execute">
  603. <command>emacsclient -s server-emms --eval '(al/emms-seek-backward 3)'</command>
  604. </action>
  605. </keybind>
  606. <keybind key="C-XF86AudioNext">
  607. <action name="Execute">
  608. <command>emacsclient -s server-emms --eval '(al/emms-seek-forward 3)'</command>
  609. </action>
  610. </keybind>
  611. <keybind key="A-XF86AudioPrev">
  612. <action name="Execute">
  613. <command>emacsclient -s server-emms --eval '(al/emms-seek-backward 60)'</command>
  614. </action>
  615. </keybind>
  616. <keybind key="A-XF86AudioNext">
  617. <action name="Execute">
  618. <command>emacsclient -s server-emms --eval '(al/emms-seek-forward 60)'</command>
  619. </action>
  620. </keybind>
  621. <keybind key="A-C-XF86AudioPrev">
  622. <action name="Execute">
  623. <command>emacsclient -s server-emms --eval '(al/emms-seek-backward 180)'</command>
  624. </action>
  625. </keybind>
  626. <keybind key="A-C-XF86AudioNext">
  627. <action name="Execute">
  628. <command>emacsclient -s server-emms --eval '(al/emms-seek-forward 180)'</command>
  629. </action>
  630. </keybind>
  631. <keybind key="XF86AudioMedia">
  632. <action name="Execute">
  633. <command>emacs-eval '(emms-smart-browse)'</command>
  634. </action>
  635. </keybind>
  636. <keybind key="XF86Music">
  637. <action name="Execute">
  638. <command>emacs-eval '(al/emms-notify)'</command>
  639. </action>
  640. </keybind>
  641. <keybind key="XF86Sleep">
  642. <action name="Execute">
  643. <command>monitor blank</command>
  644. </action>
  645. </keybind>
  646. <keybind key="C-XF86Sleep">
  647. <action name="Execute">
  648. <command>monitor suspend</command>
  649. </action>
  650. </keybind>
  651. <keybind key="A-XF86Sleep">
  652. <action name="Execute">
  653. <command>monitor off</command>
  654. </action>
  655. </keybind>
  656. <keybind key="XF86Calculator">
  657. <action name="Execute">
  658. <command>emacs-eval '(calc)'</command>
  659. </action>
  660. </keybind>
  661. <keybind key="C-XF86Calculator">
  662. <action name="Execute">
  663. <command>emacs-eval '(calendar)'</command>
  664. </action>
  665. </keybind>
  666. <keybind key="XF86Documents">
  667. <action name="Execute">
  668. <command>emacs-eval '(find-file "~/notes/bookmarks.org")'</command>
  669. </action>
  670. </keybind>
  671. <keybind key="A-XF86Documents">
  672. <action name="Execute">
  673. <command>emacs-eval '(find-file "~/notes/tasks.org")'</command>
  674. </action>
  675. </keybind>
  676. <keybind key="S-XF86Documents">
  677. <action name="Execute">
  678. <command>emacs-eval '(find-file "~/notes/info.org")'</command>
  679. </action>
  680. </keybind>
  681. <keybind key="C-XF86Documents">
  682. <action name="Execute">
  683. <command>emacs-eval '(org-capture 1 "n")'</command>
  684. </action>
  685. </keybind>
  686. <keybind key="W-7">
  687. <action name="Execute">
  688. <command>switch_layout 0</command>
  689. </action>
  690. </keybind>
  691. <keybind key="W-8">
  692. <action name="Execute">
  693. <command>switch_layout 1</command>
  694. </action>
  695. </keybind>
  696. <keybind key="W-9">
  697. <action name="Execute">
  698. <command>switch_layout 2</command>
  699. </action>
  700. </keybind>
  701. <keybind key="W-m">
  702. <keybind key="g">
  703. <action name="Execute">
  704. <command>run-or-focus gcolor2</command>
  705. </action>
  706. </keybind>
  707. <keybind key="t">
  708. <action name="Execute">
  709. <command>run-or-focus xterm</command>
  710. </action>
  711. </keybind>
  712. <keybind key="S-t">
  713. <action name="Execute">
  714. <command>xterm</command>
  715. </action>
  716. </keybind>
  717. <keybind key="f">
  718. <action name="Execute">
  719. <command>run-or-focus firefox</command>
  720. </action>
  721. </keybind>
  722. <keybind key="S-f">
  723. <action name="Execute">
  724. <command>firefox about:blank</command>
  725. </action>
  726. </keybind>
  727. <keybind key="c">
  728. <action name="Execute">
  729. <command>run-or-focus conkeror</command>
  730. </action>
  731. </keybind>
  732. <keybind key="e">
  733. <action name="Execute">
  734. <command>run-or-focus emacs</command>
  735. </action>
  736. </keybind>
  737. <keybind key="S-e">
  738. <action name="Execute">
  739. <command>emacs -mm</command>
  740. </action>
  741. </keybind>
  742. <keybind key="p">
  743. <action name="Execute">
  744. <command>run-or-focus pcmanfm</command>
  745. </action>
  746. </keybind>
  747. <keybind key="S-p">
  748. <action name="Execute">
  749. <command>pcmanfm</command>
  750. </action>
  751. </keybind>
  752. <keybind key="m">
  753. <action name="Execute">
  754. <command>gmrun</command>
  755. </action>
  756. </keybind>
  757. </keybind>
  758. <keybind key="W-g">
  759. <action name="Execute">
  760. <command>conkeror -f unfocus</command>
  761. </action>
  762. </keybind>
  763. <keybind key="W-XF86Open">
  764. <action name="Reconfigure"/>
  765. </keybind>
  766. <keybind key="Print">
  767. <action name="Execute">
  768. <command>capture desktop</command>
  769. </action>
  770. </keybind>
  771. <keybind key="A-Print">
  772. <action name="Execute">
  773. <command>capture image</command>
  774. </action>
  775. </keybind>
  776. <keybind key="W-Print">
  777. <action name="Execute">
  778. <command>clock</command>
  779. </action>
  780. </keybind>
  781. <keybind key="XF86Close">
  782. <keybind key="e">
  783. <action name="Execute">
  784. <command>emacs-eval "(call-interactively 'echo-msk-program-task)"</command>
  785. </action>
  786. </keybind>
  787. <keybind key="v">
  788. <action name="Execute">
  789. <command>emacsclient -s server-emms --eval '(emms-play-url "mms://live.rfn.ru/vesti_fm")'</command>
  790. </action>
  791. </keybind>
  792. </keybind>
  793. <keybind key="XF86Open">
  794. <keybind key="XF86Open">
  795. <action name="Execute">
  796. <command>conkeror-eval 'find-url-new-buffer'</command>
  797. </action>
  798. </keybind>
  799. <keybind key="g">
  800. <action name="Execute">
  801. <command>conkeror-eval 'internet-search-google-prompted'</command>
  802. </action>
  803. </keybind>
  804. <keybind key="d">
  805. <action name="Execute">
  806. <command>conkeror-eval 'internet-search-duckduckgo-prompted'</command>
  807. </action>
  808. </keybind>
  809. <keybind key="c">
  810. <action name="Execute">
  811. <command>conkeror-eval 'internet-search-conkeror-prompted'</command>
  812. </action>
  813. </keybind>
  814. <keybind key="e">
  815. <action name="Execute">
  816. <command>conkeror-eval 'internet-search-emacswiki-prompted'</command>
  817. </action>
  818. </keybind>
  819. <keybind key="a">
  820. <action name="Execute">
  821. <command>conkeror-eval 'internet-search-archwiki-prompted'</command>
  822. </action>
  823. </keybind>
  824. <keybind key="S-a">
  825. <action name="Execute">
  826. <command>conkeror-eval 'internet-search-arch-package-prompted'</command>
  827. </action>
  828. </keybind>
  829. <keybind key="m">
  830. <action name="Execute">
  831. <command>conkeror-eval 'internet-search-multitran-prompted'</command>
  832. </action>
  833. </keybind>
  834. <keybind key="S-m">
  835. <action name="Execute">
  836. <command>conkeror 'https://maps.google.com/maps?hl=ru'</command>
  837. </action>
  838. </keybind>
  839. <keybind key="y">
  840. <action name="Execute">
  841. <command>conkeror-eval 'internet-search-youtube-prompted'</command>
  842. </action>
  843. </keybind>
  844. <keybind key="s">
  845. <action name="Execute">
  846. <command>conkeror 'http://news.sportbox.ru/video?channel=all'</command>
  847. </action>
  848. </keybind>
  849. <keybind key="p">
  850. <action name="Execute">
  851. <command>conkeror-eval 'internet-search-python3-prompted'</command>
  852. </action>
  853. </keybind>
  854. <keybind key="w">
  855. <keybind key="e">
  856. <action name="Execute">
  857. <command>conkeror-eval 'internet-search-wikipedia-en-prompted'</command>
  858. </action>
  859. </keybind>
  860. <keybind key="r">
  861. <action name="Execute">
  862. <command>conkeror-eval 'internet-search-wikipedia-ru-prompted'</command>
  863. </action>
  864. </keybind>
  865. </keybind>
  866. </keybind>
  867. </keyboard>
  868. <mouse>
  869. <dragThreshold>8</dragThreshold>
  870. <!-- number of pixels the mouse must move before a drag begins -->
  871. <doubleClickTime>400</doubleClickTime>
  872. <!-- in milliseconds (1000 = 1 second) -->
  873. <screenEdgeWarpTime>400</screenEdgeWarpTime>
  874. <!-- Time before changing desktops when the pointer touches the edge of the
  875. screen while moving a window, in milliseconds (1000 = 1 second).
  876. Set this to 0 to disable warping -->
  877. <context name="Frame">
  878. <mousebind action="Press" button="W-Left">
  879. <action name="Focus"/>
  880. <action name="Raise"/>
  881. <action name="Unshade"/>
  882. </mousebind>
  883. <mousebind action="Drag" button="W-Left">
  884. <action name="Move"/>
  885. </mousebind>
  886. <mousebind action="Press" button="W-Right">
  887. <action name="Focus"/>
  888. <action name="Raise"/>
  889. <action name="Unshade"/>
  890. </mousebind>
  891. <mousebind action="Drag" button="W-Right">
  892. <action name="Resize"/>
  893. </mousebind>
  894. <mousebind action="Press" button="W-Middle">
  895. <action name="Focus"/>
  896. <action name="Raise"/>
  897. <action name="ShowMenu">
  898. <menu>client-menu</menu>
  899. </action>
  900. </mousebind>
  901. <mousebind action="Click" button="W-Up">
  902. <action name="SendToDesktopPrevious"/>
  903. </mousebind>
  904. <mousebind action="Click" button="W-Down">
  905. <action name="SendToDesktopNext"/>
  906. </mousebind>
  907. </context>
  908. <context name="Titlebar">
  909. <mousebind action="Press" button="Left">
  910. <action name="Focus"/>
  911. <action name="Raise"/>
  912. </mousebind>
  913. <mousebind action="Drag" button="Left">
  914. <action name="Move"/>
  915. </mousebind>
  916. <mousebind action="DoubleClick" button="Left">
  917. <action name="ToggleMaximizeFull"/>
  918. </mousebind>
  919. <mousebind action="Press" button="Middle">
  920. <action name="Close"/>
  921. </mousebind>
  922. <mousebind action="Click" button="Up">
  923. <action name="Shade"/>
  924. </mousebind>
  925. <mousebind action="Click" button="Down">
  926. <action name="Unshade"/>
  927. <action name="Raise"/>
  928. </mousebind>
  929. <mousebind action="Press" button="Right">
  930. <action name="Focus"/>
  931. <action name="Raise"/>
  932. <action name="ShowMenu">
  933. <menu>client-menu</menu>
  934. </action>
  935. </mousebind>
  936. </context>
  937. <context name="Top">
  938. <mousebind action="Press" button="Left">
  939. <action name="Focus"/>
  940. <action name="Raise"/>
  941. <action name="Unshade"/>
  942. </mousebind>
  943. <mousebind action="Drag" button="Left">
  944. <action name="Resize">
  945. <edge>top</edge>
  946. </action>
  947. </mousebind>
  948. </context>
  949. <context name="Left">
  950. <mousebind action="Press" button="Left">
  951. <action name="Focus"/>
  952. <action name="Raise"/>
  953. </mousebind>
  954. <mousebind action="Drag" button="Left">
  955. <action name="Resize">
  956. <edge>left</edge>
  957. </action>
  958. </mousebind>
  959. </context>
  960. <context name="Right">
  961. <mousebind action="Press" button="Left">
  962. <action name="Focus"/>
  963. <action name="Raise"/>
  964. </mousebind>
  965. <mousebind action="Drag" button="Left">
  966. <action name="Resize">
  967. <edge>right</edge>
  968. </action>
  969. </mousebind>
  970. </context>
  971. <context name="Bottom">
  972. <mousebind action="Press" button="Left">
  973. <action name="Focus"/>
  974. <action name="Raise"/>
  975. </mousebind>
  976. <mousebind action="Drag" button="Left">
  977. <action name="Resize">
  978. <edge>bottom</edge>
  979. </action>
  980. </mousebind>
  981. <mousebind action="Press" button="Middle">
  982. <action name="Lower"/>
  983. <action name="FocusToBottom"/>
  984. <action name="Unfocus"/>
  985. </mousebind>
  986. <mousebind action="Press" button="Right">
  987. <action name="Focus"/>
  988. <action name="Raise"/>
  989. <action name="ShowMenu">
  990. <menu>client-menu</menu>
  991. </action>
  992. </mousebind>
  993. </context>
  994. <context name="BLCorner">
  995. <mousebind action="Press" button="Left">
  996. <action name="Focus"/>
  997. <action name="Raise"/>
  998. </mousebind>
  999. <mousebind action="Drag" button="Left">
  1000. <action name="Resize"/>
  1001. </mousebind>
  1002. </context>
  1003. <context name="BRCorner">
  1004. <mousebind action="Press" button="Left">
  1005. <action name="Focus"/>
  1006. <action name="Raise"/>
  1007. </mousebind>
  1008. <mousebind action="Drag" button="Left">
  1009. <action name="Resize"/>
  1010. </mousebind>
  1011. </context>
  1012. <context name="TLCorner">
  1013. <mousebind action="Press" button="Left">
  1014. <action name="Focus"/>
  1015. <action name="Raise"/>
  1016. <action name="Unshade"/>
  1017. </mousebind>
  1018. <mousebind action="Drag" button="Left">
  1019. <action name="Resize"/>
  1020. </mousebind>
  1021. </context>
  1022. <context name="TRCorner">
  1023. <mousebind action="Press" button="Left">
  1024. <action name="Focus"/>
  1025. <action name="Raise"/>
  1026. <action name="Unshade"/>
  1027. </mousebind>
  1028. <mousebind action="Drag" button="Left">
  1029. <action name="Resize"/>
  1030. </mousebind>
  1031. </context>
  1032. <context name="Client">
  1033. <mousebind action="Press" button="Left">
  1034. <action name="Focus"/>
  1035. <action name="Raise"/>
  1036. </mousebind>
  1037. <mousebind action="Press" button="Middle">
  1038. <action name="Focus"/>
  1039. <action name="Raise"/>
  1040. </mousebind>
  1041. <mousebind action="Press" button="Right">
  1042. <action name="Focus"/>
  1043. <action name="Raise"/>
  1044. </mousebind>
  1045. </context>
  1046. <context name="Icon">
  1047. <mousebind action="Press" button="Left">
  1048. <action name="Focus"/>
  1049. <action name="Raise"/>
  1050. <action name="Unshade"/>
  1051. <action name="ShowMenu">
  1052. <menu>client-menu</menu>
  1053. </action>
  1054. </mousebind>
  1055. <mousebind action="Press" button="Right">
  1056. <action name="Focus"/>
  1057. <action name="Raise"/>
  1058. <action name="ShowMenu">
  1059. <menu>client-menu</menu>
  1060. </action>
  1061. </mousebind>
  1062. </context>
  1063. <context name="AllDesktops">
  1064. <mousebind action="Press" button="Left">
  1065. <action name="Focus"/>
  1066. <action name="Raise"/>
  1067. <action name="Unshade"/>
  1068. </mousebind>
  1069. <mousebind action="Click" button="Left">
  1070. <action name="ToggleOmnipresent"/>
  1071. </mousebind>
  1072. </context>
  1073. <context name="Shade">
  1074. <mousebind action="Press" button="Left">
  1075. <action name="Focus"/>
  1076. <action name="Raise"/>
  1077. </mousebind>
  1078. <mousebind action="Click" button="Left">
  1079. <action name="ToggleShade"/>
  1080. </mousebind>
  1081. </context>
  1082. <context name="Iconify">
  1083. <mousebind action="Press" button="Left">
  1084. <action name="Focus"/>
  1085. <action name="Raise"/>
  1086. </mousebind>
  1087. <mousebind action="Click" button="Left">
  1088. <action name="Iconify"/>
  1089. </mousebind>
  1090. </context>
  1091. <context name="Maximize">
  1092. <mousebind action="Press" button="Left">
  1093. <action name="Focus"/>
  1094. <action name="Raise"/>
  1095. <action name="Unshade"/>
  1096. </mousebind>
  1097. <mousebind action="Press" button="Middle">
  1098. <action name="Focus"/>
  1099. <action name="Raise"/>
  1100. <action name="Unshade"/>
  1101. </mousebind>
  1102. <mousebind action="Press" button="Right">
  1103. <action name="Focus"/>
  1104. <action name="Raise"/>
  1105. <action name="Unshade"/>
  1106. </mousebind>
  1107. <mousebind action="Click" button="Left">
  1108. <action name="ToggleMaximizeFull"/>
  1109. </mousebind>
  1110. <mousebind action="Click" button="Middle">
  1111. <action name="ToggleMaximizeVert"/>
  1112. </mousebind>
  1113. <mousebind action="Click" button="Right">
  1114. <action name="ToggleMaximizeHorz"/>
  1115. </mousebind>
  1116. </context>
  1117. <context name="Close">
  1118. <mousebind action="Press" button="Left">
  1119. <action name="Focus"/>
  1120. <action name="Raise"/>
  1121. <action name="Unshade"/>
  1122. </mousebind>
  1123. <mousebind action="Click" button="Left">
  1124. <action name="Close"/>
  1125. </mousebind>
  1126. </context>
  1127. <context name="Desktop">
  1128. <mousebind action="Click" button="Up">
  1129. <action name="DesktopPrevious"/>
  1130. </mousebind>
  1131. <mousebind action="Click" button="Down">
  1132. <action name="DesktopNext"/>
  1133. </mousebind>
  1134. </context>
  1135. <context name="Root">
  1136. <mousebind action="Press" button="Middle">
  1137. <action name="ToggleShowDesktop"/>
  1138. </mousebind>
  1139. <mousebind action="Press" button="Left">
  1140. <action name="ShowMenu">
  1141. <menu>client-list-combined-menu</menu>
  1142. </action>
  1143. </mousebind>
  1144. <mousebind action="Press" button="Right">
  1145. <action name="ShowMenu">
  1146. <menu>root-menu</menu>
  1147. </action>
  1148. </mousebind>
  1149. </context>
  1150. <context name="MoveResize">
  1151. <mousebind action="Click" button="Up">
  1152. <action name="DesktopPrevious"/>
  1153. </mousebind>
  1154. <mousebind action="Click" button="Down">
  1155. <action name="DesktopNext"/>
  1156. </mousebind>
  1157. <mousebind action="Click" button="A-Up">
  1158. <action name="DesktopPrevious"/>
  1159. </mousebind>
  1160. <mousebind action="Click" button="A-Down">
  1161. <action name="DesktopNext"/>
  1162. </mousebind>
  1163. </context>
  1164. </mouse>
  1165. <menu>
  1166. <!-- You can specify more than one menu file in here and they are all loaded,
  1167. just don't make menu ids clash or, well, it'll be kind of pointless -->
  1168. <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  1169. <file>menu.xml</file>
  1170. <hideDelay>200</hideDelay>
  1171. <!-- if a press-release lasts longer than this setting (in milliseconds), the
  1172. menu is hidden again -->
  1173. <middle>no</middle>
  1174. <!-- center submenus vertically about the parent entry -->
  1175. <submenuShowDelay>100</submenuShowDelay>
  1176. <!-- this one is easy, time to delay before showing a submenu after hovering
  1177. over the parent entry -->
  1178. <applicationIcons>yes</applicationIcons>
  1179. <!-- controls if icons appear in the client-list-(combined-)menu -->
  1180. <manageDesktops>no</manageDesktops>
  1181. <!-- show the manage desktops section in the client-list-(combined-)menu -->
  1182. </menu>
  1183. <applications>
  1184. <application name="xterm">
  1185. <maximized>true</maximized>
  1186. <decor>no</decor>
  1187. </application>
  1188. <!-- mplayer -->
  1189. <application name="xv">
  1190. <decor>no</decor>
  1191. </application>
  1192. <!-- tvtime -->
  1193. <application name="TVWindow">
  1194. <decor>no</decor>
  1195. </application>
  1196. <!-- conkeror (and firefox unhappily) -->
  1197. <!-- <application name="Navigator"> -->
  1198. <!-- <decor>no</decor> -->
  1199. <!-- </application> -->
  1200. <application name="emacs">
  1201. <maximized>true</maximized>
  1202. <decor>no</decor>
  1203. </application>
  1204. <application name="xclock">
  1205. <decor>no</decor>
  1206. </application>
  1207. <application name="wesnoth-1.10">
  1208. <maximized>true</maximized>
  1209. </application>
  1210. <!--
  1211. # this is an example with comments through out. use these to make your
  1212. # own rules, but without the comments of course.
  1213. <application name="first element of window's WM_CLASS property (see xprop)"
  1214. class="second element of window's WM_CLASS property (see xprop)"
  1215. role="the window's WM_WINDOW_ROLE property (see xprop)">
  1216. # the name or the class can be set, or both. this is used to match
  1217. # windows when they appear. role can optionally be set as well, to
  1218. # further restrict your matches.
  1219. # the name, class, and role use simple wildcard matching such as those
  1220. # used by a shell. you can use * to match any characters and ? to match
  1221. # any single character.
  1222. # when multiple rules match a window, they will all be applied, in the
  1223. # order that they appear in this list
  1224. # each element can be left out or set to 'default' to specify to not
  1225. # change that attribute of the window
  1226. <decor>yes</decor>
  1227. # enable or disable window decorations
  1228. <shade>no</shade>
  1229. # make the window shaded when it appears, or not
  1230. <position>
  1231. # the position is only used if both an x and y coordinate are provided
  1232. # (and not set to 'default')
  1233. <x>center</x>
  1234. # a number like 50, or 'center' to center on screen. use a negative number
  1235. # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
  1236. # right edge (or bottom).
  1237. <y>200</y>
  1238. <monitor>1</monitor>
  1239. # specifies the monitor in a xinerama setup.
  1240. # 1 is the first head, or 'mouse' for wherever the mouse is
  1241. </position>
  1242. <focus>yes</focus>
  1243. # if the window should try be given focus when it appears. if this is set
  1244. # to yes it doesn't guarantee the window will be given focus. some
  1245. # restrictions may apply, but Openbox will try to
  1246. <desktop>1</desktop>
  1247. # 1 is the first desktop, 'all' for all desktops
  1248. <layer>normal</layer>
  1249. # 'above', 'normal', or 'below'
  1250. <iconic>no</iconic>
  1251. # make the window iconified when it appears, or not
  1252. <skip_pager>no</skip_pager>
  1253. # asks to not be shown in pagers
  1254. <skip_taskbar>no</skip_taskbar>
  1255. # asks to not be shown in taskbars. window cycling actions will also
  1256. # skip past such windows
  1257. <fullscreen>yes</fullscreen>
  1258. # make the window in fullscreen mode when it appears
  1259. <maximized>true</maximized>
  1260. # 'Horizontal', 'Vertical' or boolean (yes/no)
  1261. </application>
  1262. # end of the example
  1263. -->
  1264. </applications>
  1265. </openbox_config>