rc.xml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Do not edit this file, it will be overwritten on install.
  3. Copy the file to $HOME/.config/openbox/ instead. -->
  4. <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <resistance>
  6. <strength>10</strength>
  7. <screen_edge_strength>20</screen_edge_strength>
  8. </resistance>
  9. <focus>
  10. <focusNew>yes</focusNew>
  11. <!-- always try to focus new windows when they appear. other rules do
  12. apply -->
  13. <followMouse>yes</followMouse>
  14. <!-- move focus to a window when you move the mouse into it -->
  15. <focusLast>yes</focusLast>
  16. <!-- focus the last used window when changing desktops, instead of the one
  17. under the mouse pointer. when followMouse is enabled -->
  18. <underMouse>no</underMouse>
  19. <!-- move focus under the mouse, even when the mouse is not moving -->
  20. <focusDelay>200</focusDelay>
  21. <!-- when followMouse is enabled, the mouse must be inside the window for
  22. this many milliseconds (1000 = 1 sec) before moving focus to it -->
  23. <raiseOnFocus>no</raiseOnFocus>
  24. <!-- when followMouse is enabled, and a window is given focus by moving the
  25. mouse into it, also raise the window -->
  26. </focus>
  27. <placement>
  28. <policy>Smart</policy>
  29. <!-- 'Smart' or 'UnderMouse' -->
  30. <center>yes</center>
  31. <!-- whether to place windows in the center of the free area found or
  32. the top left corner -->
  33. <monitor>Primary</monitor>
  34. <!-- with Smart placement on a multi-monitor system, try to place new windows
  35. on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
  36. the active window is, 'Primary' - only on the primary monitor -->
  37. <primaryMonitor>1</primaryMonitor>
  38. <!-- The monitor where Openbox should place popup dialogs such as the
  39. focus cycling popup, or the desktop switch popup. It can be an index
  40. from 1, specifying a particular monitor. Or it can be one of the
  41. following: 'Mouse' - where the mouse is, or
  42. 'Active' - where the active window is -->
  43. </placement>
  44. <theme>
  45. <name>Clearlooks</name>
  46. <titleLayout>NLIMC</titleLayout>
  47. <!--
  48. available characters are NDSLIMC, each can occur at most once.
  49. N: window icon
  50. L: window label (AKA title).
  51. I: iconify
  52. M: maximize
  53. C: close
  54. S: shade (roll up/down)
  55. D: omnipresent (on all desktops).
  56. -->
  57. <keepBorder>yes</keepBorder>
  58. <animateIconify>yes</animateIconify>
  59. <font place="ActiveWindow">
  60. <name>sans</name>
  61. <size>12</size>
  62. <!-- font size in points -->
  63. <weight>Bold</weight>
  64. <!-- 'bold' or 'normal' -->
  65. <slant>Normal</slant>
  66. <!-- 'italic' or 'normal' -->
  67. </font>
  68. <font place="InactiveWindow">
  69. <name>sans</name>
  70. <size>12</size>
  71. <!-- font size in points -->
  72. <weight>Bold</weight>
  73. <!-- 'bold' or 'normal' -->
  74. <slant>Normal</slant>
  75. <!-- 'italic' or 'normal' -->
  76. </font>
  77. <font place="MenuHeader">
  78. <name>sans</name>
  79. <size>12</size>
  80. <!-- font size in points -->
  81. <weight>Normal</weight>
  82. <!-- 'bold' or 'normal' -->
  83. <slant>Normal</slant>
  84. <!-- 'italic' or 'normal' -->
  85. </font>
  86. <font place="MenuItem">
  87. <name>sans</name>
  88. <size>12</size>
  89. <!-- font size in points -->
  90. <weight>Normal</weight>
  91. <!-- 'bold' or 'normal' -->
  92. <slant>Normal</slant>
  93. <!-- 'italic' or 'normal' -->
  94. </font>
  95. <font place="ActiveOnScreenDisplay">
  96. <name>sans</name>
  97. <size>12</size>
  98. <!-- font size in points -->
  99. <weight>Bold</weight>
  100. <!-- 'bold' or 'normal' -->
  101. <slant>Normal</slant>
  102. <!-- 'italic' or 'normal' -->
  103. </font>
  104. <font place="InactiveOnScreenDisplay">
  105. <name>sans</name>
  106. <size>12</size>
  107. <!-- font size in points -->
  108. <weight>Bold</weight>
  109. <!-- 'bold' or 'normal' -->
  110. <slant>Normal</slant>
  111. <!-- 'italic' or 'normal' -->
  112. </font>
  113. </theme>
  114. <desktops>
  115. <!-- this stuff is only used at startup, pagers allow you to change them
  116. during a session
  117. these are default values to use when other ones are not already set
  118. by other applications, or saved in your session
  119. use obconf if you want to change these without having to log out
  120. and back in -->
  121. <number>4</number>
  122. <firstdesk>1</firstdesk>
  123. <names>
  124. <!-- set names up here if you want to, like this:
  125. <name>desktop 1</name>
  126. <name>desktop 2</name>
  127. -->
  128. </names>
  129. <popupTime>875</popupTime>
  130. <!-- The number of milliseconds to show the popup for when switching
  131. desktops. Set this to 0 to disable the popup. -->
  132. </desktops>
  133. <resize>
  134. <drawContents>yes</drawContents>
  135. <popupShow>Nonpixel</popupShow>
  136. <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  137. <popupPosition>Center</popupPosition>
  138. <!-- 'Center', 'Top', or 'Fixed' -->
  139. <popupFixedPosition>
  140. <!-- these are used if popupPosition is set to 'Fixed' -->
  141. <x>10</x>
  142. <!-- positive number for distance from left edge, negative number for
  143. distance from right edge, or 'Center' -->
  144. <y>10</y>
  145. <!-- positive number for distance from top edge, negative number for
  146. distance from bottom edge, or 'Center' -->
  147. </popupFixedPosition>
  148. </resize>
  149. <!-- You can reserve a portion of your screen where windows will not cover when
  150. they are maximized, or when they are initially placed.
  151. Many programs reserve space automatically, but you can use this in other
  152. cases. -->
  153. <margins>
  154. <top>0</top>
  155. <bottom>0</bottom>
  156. <left>0</left>
  157. <right>0</right>
  158. </margins>
  159. <dock>
  160. <position>BottomRight</position>
  161. <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  162. <floatingX>0</floatingX>
  163. <floatingY>0</floatingY>
  164. <noStrut>no</noStrut>
  165. <stacking>Above</stacking>
  166. <!-- 'Above', 'Normal', or 'Below' -->
  167. <direction>Horizontal</direction>
  168. <!-- 'Vertical' or 'Horizontal' -->
  169. <autoHide>no</autoHide>
  170. <hideDelay>300</hideDelay>
  171. <!-- in milliseconds (1000 = 1 second) -->
  172. <showDelay>300</showDelay>
  173. <!-- in milliseconds (1000 = 1 second) -->
  174. <moveButton>Middle</moveButton>
  175. <!-- 'Left', 'Middle', 'Right' -->
  176. </dock>
  177. <keyboard>
  178. <chainQuitKey>C-g</chainQuitKey>
  179. <!-- Keybindings for desktop switching -->
  180. <keybind key="C-A-Left">
  181. <action name="GoToDesktop">
  182. <to>left</to>
  183. <wrap>no</wrap>
  184. </action>
  185. </keybind>
  186. <keybind key="C-A-Right">
  187. <action name="GoToDesktop">
  188. <to>right</to>
  189. <wrap>no</wrap>
  190. </action>
  191. </keybind>
  192. <keybind key="C-A-Up">
  193. <action name="GoToDesktop">
  194. <to>up</to>
  195. <wrap>no</wrap>
  196. </action>
  197. </keybind>
  198. <keybind key="C-A-Down">
  199. <action name="GoToDesktop">
  200. <to>down</to>
  201. <wrap>no</wrap>
  202. </action>
  203. </keybind>
  204. <keybind key="S-A-Left">
  205. <action name="SendToDesktop">
  206. <to>left</to>
  207. <wrap>no</wrap>
  208. </action>
  209. </keybind>
  210. <keybind key="S-A-Right">
  211. <action name="SendToDesktop">
  212. <to>right</to>
  213. <wrap>no</wrap>
  214. </action>
  215. </keybind>
  216. <keybind key="S-A-Up">
  217. <action name="SendToDesktop">
  218. <to>up</to>
  219. <wrap>no</wrap>
  220. </action>
  221. </keybind>
  222. <keybind key="S-A-Down">
  223. <action name="SendToDesktop">
  224. <to>down</to>
  225. <wrap>no</wrap>
  226. </action>
  227. </keybind>
  228. <keybind key="W-F1">
  229. <action name="GoToDesktop">
  230. <to>1</to>
  231. </action>
  232. </keybind>
  233. <keybind key="W-F2">
  234. <action name="GoToDesktop">
  235. <to>2</to>
  236. </action>
  237. </keybind>
  238. <keybind key="W-F3">
  239. <action name="GoToDesktop">
  240. <to>3</to>
  241. </action>
  242. </keybind>
  243. <keybind key="W-F4">
  244. <action name="GoToDesktop">
  245. <to>4</to>
  246. </action>
  247. </keybind>
  248. <keybind key="W-e">
  249. <action name="ToggleShowDesktop"/>
  250. </keybind>
  251. <!-- Keybindings for windows -->
  252. <keybind key="W-S-q">
  253. <action name="Close"/>
  254. </keybind>
  255. <keybind key="A-Escape">
  256. <action name="Lower"/>
  257. <action name="FocusToBottom"/>
  258. <action name="Unfocus"/>
  259. </keybind>
  260. <keybind key="A-space">
  261. <action name="ShowMenu">
  262. <menu>client-menu</menu>
  263. </action>
  264. </keybind>
  265. <!-- Take a screenshot of the current window with scrot when Alt+Print are pressed -->
  266. <keybind key="A-Print">
  267. <action name="Execute">
  268. <command>scrot -s</command>
  269. </action>
  270. </keybind>
  271. <!-- Keybindings for window switching -->
  272. <keybind key="A-Tab">
  273. <action name="NextWindow">
  274. <finalactions>
  275. <action name="Focus"/>
  276. <action name="Raise"/>
  277. <action name="Unshade"/>
  278. </finalactions>
  279. </action>
  280. </keybind>
  281. <keybind key="A-S-Tab">
  282. <action name="PreviousWindow">
  283. <finalactions>
  284. <action name="Focus"/>
  285. <action name="Raise"/>
  286. <action name="Unshade"/>
  287. </finalactions>
  288. </action>
  289. </keybind>
  290. <keybind key="C-A-Tab">
  291. <action name="NextWindow">
  292. <panels>yes</panels>
  293. <desktop>yes</desktop>
  294. <finalactions>
  295. <action name="Focus"/>
  296. <action name="Raise"/>
  297. <action name="Unshade"/>
  298. </finalactions>
  299. </action>
  300. </keybind>
  301. <!-- Keybindings for window switching with the arrow keys -->
  302. <keybind key="W-S-Right">
  303. <action name="DirectionalCycleWindows">
  304. <direction>right</direction>
  305. </action>
  306. </keybind>
  307. <keybind key="W-S-Left">
  308. <action name="DirectionalCycleWindows">
  309. <direction>left</direction>
  310. </action>
  311. </keybind>
  312. <keybind key="W-S-Up">
  313. <action name="DirectionalCycleWindows">
  314. <direction>up</direction>
  315. </action>
  316. </keybind>
  317. <keybind key="W-S-Down">
  318. <action name="DirectionalCycleWindows">
  319. <direction>down</direction>
  320. </action>
  321. </keybind>
  322. <!-- Keybindings for running applications -->
  323. <keybind key="W-d">
  324. <action name="Execute">
  325. <command>rofi -show run</command>
  326. </action>
  327. </keybind>
  328. <keybind key="W-S-d">
  329. <action name="Execute">
  330. <command>rofi -show window</command>
  331. </action>
  332. </keybind>
  333. <keybind key="W-Return">
  334. <action name="Execute">
  335. <command>urxvt</command>
  336. </action>
  337. </keybind>
  338. <keybind key="XF86AudioRaiseVolume">
  339. <action name="Execute">
  340. <command>amixer -q set Master 2dB+ unmute</command>
  341. </action>
  342. </keybind>
  343. <keybind key="XF86AudioLowerVolume">
  344. <action name="Execute">
  345. <command>amixer -q set Master 2dB- unmute</command>
  346. </action>
  347. </keybind>
  348. <keybind key="XF86AudioMute">
  349. <action name="Execute">
  350. <command>amixer -q set Speaker toggle; amixer -q set Master toggle</command>
  351. </action>
  352. </keybind>
  353. <keybind key="XF86MonBrightnessUp">
  354. <action name="Execute">
  355. <command>sudo light -A 10</command>
  356. </action>
  357. </keybind>
  358. <keybind key="XF86MonBrightnessDown">
  359. <action name="Execute">
  360. <command>sudo light -U 10</command>
  361. </action>
  362. </keybind>
  363. <!-- Launch scrot when Print is pressed -->
  364. <keybind key="Print">
  365. <action name="Execute">
  366. <command>scrot</command>
  367. </action>
  368. </keybind>
  369. </keyboard>
  370. <mouse>
  371. <dragThreshold>1</dragThreshold>
  372. <!-- number of pixels the mouse must move before a drag begins -->
  373. <doubleClickTime>500</doubleClickTime>
  374. <!-- in milliseconds (1000 = 1 second) -->
  375. <screenEdgeWarpTime>400</screenEdgeWarpTime>
  376. <!-- Time before changing desktops when the pointer touches the edge of the
  377. screen while moving a window, in milliseconds (1000 = 1 second).
  378. Set this to 0 to disable warping -->
  379. <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  380. <!-- Set this to TRUE to move the mouse pointer across the desktop when
  381. switching due to hitting the edge of the screen -->
  382. <context name="Frame">
  383. <mousebind button="A-Left" action="Press">
  384. <action name="Focus"/>
  385. <action name="Raise"/>
  386. </mousebind>
  387. <mousebind button="A-Left" action="Click">
  388. <action name="Unshade"/>
  389. </mousebind>
  390. <mousebind button="W-Left" action="Drag">
  391. <action name="Move"/>
  392. </mousebind>
  393. <mousebind button="A-Right" action="Press">
  394. <action name="Focus"/>
  395. <action name="Raise"/>
  396. <action name="Unshade"/>
  397. </mousebind>
  398. <mousebind button="W-Right" action="Drag">
  399. <action name="Resize"/>
  400. </mousebind>
  401. <mousebind button="A-Middle" action="Press">
  402. <action name="Lower"/>
  403. <action name="FocusToBottom"/>
  404. <action name="Unfocus"/>
  405. </mousebind>
  406. <mousebind button="A-Up" action="Click">
  407. <action name="GoToDesktop">
  408. <to>previous</to>
  409. </action>
  410. </mousebind>
  411. <mousebind button="A-Down" action="Click">
  412. <action name="GoToDesktop">
  413. <to>next</to>
  414. </action>
  415. </mousebind>
  416. <mousebind button="C-A-Up" action="Click">
  417. <action name="GoToDesktop">
  418. <to>previous</to>
  419. </action>
  420. </mousebind>
  421. <mousebind button="C-A-Down" action="Click">
  422. <action name="GoToDesktop">
  423. <to>next</to>
  424. </action>
  425. </mousebind>
  426. <mousebind button="A-S-Up" action="Click">
  427. <action name="SendToDesktop">
  428. <to>previous</to>
  429. </action>
  430. </mousebind>
  431. <mousebind button="A-S-Down" action="Click">
  432. <action name="SendToDesktop">
  433. <to>next</to>
  434. </action>
  435. </mousebind>
  436. </context>
  437. <context name="Titlebar">
  438. <mousebind button="Left" action="Drag">
  439. <action name="Move"/>
  440. </mousebind>
  441. <mousebind button="Left" action="DoubleClick">
  442. <action name="ToggleMaximize"/>
  443. </mousebind>
  444. <mousebind button="Up" action="Click">
  445. <action name="if">
  446. <shaded>no</shaded>
  447. <then>
  448. <action name="Shade"/>
  449. <action name="FocusToBottom"/>
  450. <action name="Unfocus"/>
  451. <action name="Lower"/>
  452. </then>
  453. </action>
  454. </mousebind>
  455. <mousebind button="Down" action="Click">
  456. <action name="if">
  457. <shaded>yes</shaded>
  458. <then>
  459. <action name="Unshade"/>
  460. <action name="Raise"/>
  461. </then>
  462. </action>
  463. </mousebind>
  464. </context>
  465. <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  466. <mousebind button="Left" action="Press">
  467. <action name="Focus"/>
  468. <action name="Raise"/>
  469. <action name="Unshade"/>
  470. </mousebind>
  471. <mousebind button="Middle" action="Press">
  472. <action name="Lower"/>
  473. <action name="FocusToBottom"/>
  474. <action name="Unfocus"/>
  475. </mousebind>
  476. <mousebind button="Right" action="Press">
  477. <action name="Focus"/>
  478. <action name="Raise"/>
  479. <action name="ShowMenu">
  480. <menu>client-menu</menu>
  481. </action>
  482. </mousebind>
  483. </context>
  484. <context name="Top">
  485. <mousebind button="Left" action="Drag">
  486. <action name="Resize">
  487. <edge>top</edge>
  488. </action>
  489. </mousebind>
  490. </context>
  491. <context name="Left">
  492. <mousebind button="Left" action="Drag">
  493. <action name="Resize">
  494. <edge>left</edge>
  495. </action>
  496. </mousebind>
  497. </context>
  498. <context name="Right">
  499. <mousebind button="Left" action="Drag">
  500. <action name="Resize">
  501. <edge>right</edge>
  502. </action>
  503. </mousebind>
  504. </context>
  505. <context name="Bottom">
  506. <mousebind button="Left" action="Drag">
  507. <action name="Resize">
  508. <edge>bottom</edge>
  509. </action>
  510. </mousebind>
  511. <mousebind button="Right" action="Press">
  512. <action name="Focus"/>
  513. <action name="Raise"/>
  514. <action name="ShowMenu">
  515. <menu>client-menu</menu>
  516. </action>
  517. </mousebind>
  518. </context>
  519. <context name="TRCorner BRCorner TLCorner BLCorner">
  520. <mousebind button="Left" action="Press">
  521. <action name="Focus"/>
  522. <action name="Raise"/>
  523. <action name="Unshade"/>
  524. </mousebind>
  525. <mousebind button="Left" action="Drag">
  526. <action name="Resize"/>
  527. </mousebind>
  528. </context>
  529. <context name="Client">
  530. <mousebind button="Left" action="Press">
  531. <action name="Focus"/>
  532. <action name="Raise"/>
  533. </mousebind>
  534. <mousebind button="Middle" action="Press">
  535. <action name="Focus"/>
  536. <action name="Raise"/>
  537. </mousebind>
  538. <mousebind button="Right" action="Press">
  539. <action name="Focus"/>
  540. <action name="Raise"/>
  541. </mousebind>
  542. </context>
  543. <context name="Icon">
  544. <mousebind button="Left" action="Press">
  545. <action name="Focus"/>
  546. <action name="Raise"/>
  547. <action name="Unshade"/>
  548. <action name="ShowMenu">
  549. <menu>client-menu</menu>
  550. </action>
  551. </mousebind>
  552. <mousebind button="Right" action="Press">
  553. <action name="Focus"/>
  554. <action name="Raise"/>
  555. <action name="ShowMenu">
  556. <menu>client-menu</menu>
  557. </action>
  558. </mousebind>
  559. </context>
  560. <context name="AllDesktops">
  561. <mousebind button="Left" action="Press">
  562. <action name="Focus"/>
  563. <action name="Raise"/>
  564. <action name="Unshade"/>
  565. </mousebind>
  566. <mousebind button="Left" action="Click">
  567. <action name="ToggleOmnipresent"/>
  568. </mousebind>
  569. </context>
  570. <context name="Shade">
  571. <mousebind button="Left" action="Press">
  572. <action name="Focus"/>
  573. <action name="Raise"/>
  574. </mousebind>
  575. <mousebind button="Left" action="Click">
  576. <action name="ToggleShade"/>
  577. </mousebind>
  578. </context>
  579. <context name="Iconify">
  580. <mousebind button="Left" action="Press">
  581. <action name="Focus"/>
  582. <action name="Raise"/>
  583. </mousebind>
  584. <mousebind button="Left" action="Click">
  585. <action name="Iconify"/>
  586. </mousebind>
  587. </context>
  588. <context name="Maximize">
  589. <mousebind button="Left" action="Press">
  590. <action name="Focus"/>
  591. <action name="Raise"/>
  592. <action name="Unshade"/>
  593. </mousebind>
  594. <mousebind button="Middle" action="Press">
  595. <action name="Focus"/>
  596. <action name="Raise"/>
  597. <action name="Unshade"/>
  598. </mousebind>
  599. <mousebind button="Right" action="Press">
  600. <action name="Focus"/>
  601. <action name="Raise"/>
  602. <action name="Unshade"/>
  603. </mousebind>
  604. <mousebind button="Left" action="Click">
  605. <action name="ToggleMaximize"/>
  606. </mousebind>
  607. <mousebind button="Middle" action="Click">
  608. <action name="ToggleMaximize">
  609. <direction>vertical</direction>
  610. </action>
  611. </mousebind>
  612. <mousebind button="Right" action="Click">
  613. <action name="ToggleMaximize">
  614. <direction>horizontal</direction>
  615. </action>
  616. </mousebind>
  617. </context>
  618. <context name="Close">
  619. <mousebind button="Left" action="Press">
  620. <action name="Focus"/>
  621. <action name="Raise"/>
  622. <action name="Unshade"/>
  623. </mousebind>
  624. <mousebind button="Left" action="Click">
  625. <action name="Close"/>
  626. </mousebind>
  627. </context>
  628. <context name="Desktop">
  629. <mousebind button="Up" action="Click">
  630. <action name="GoToDesktop">
  631. <to>previous</to>
  632. </action>
  633. </mousebind>
  634. <mousebind button="Down" action="Click">
  635. <action name="GoToDesktop">
  636. <to>next</to>
  637. </action>
  638. </mousebind>
  639. <mousebind button="A-Up" action="Click">
  640. <action name="GoToDesktop">
  641. <to>previous</to>
  642. </action>
  643. </mousebind>
  644. <mousebind button="A-Down" action="Click">
  645. <action name="GoToDesktop">
  646. <to>next</to>
  647. </action>
  648. </mousebind>
  649. <mousebind button="C-A-Up" action="Click">
  650. <action name="GoToDesktop">
  651. <to>previous</to>
  652. </action>
  653. </mousebind>
  654. <mousebind button="C-A-Down" action="Click">
  655. <action name="GoToDesktop">
  656. <to>next</to>
  657. </action>
  658. </mousebind>
  659. <mousebind button="Left" action="Press">
  660. <action name="Focus"/>
  661. <action name="Raise"/>
  662. </mousebind>
  663. <mousebind button="Right" action="Press">
  664. <action name="Focus"/>
  665. <action name="Raise"/>
  666. </mousebind>
  667. </context>
  668. <context name="Root">
  669. <!-- Menus -->
  670. <mousebind button="Middle" action="Press">
  671. <action name="ShowMenu">
  672. <menu>client-list-combined-menu</menu>
  673. </action>
  674. </mousebind>
  675. <mousebind button="Right" action="Press">
  676. <action name="ShowMenu">
  677. <menu>root-menu</menu>
  678. </action>
  679. </mousebind>
  680. </context>
  681. <context name="MoveResize">
  682. <mousebind button="Up" action="Click">
  683. <action name="GoToDesktop">
  684. <to>previous</to>
  685. </action>
  686. </mousebind>
  687. <mousebind button="Down" action="Click">
  688. <action name="GoToDesktop">
  689. <to>next</to>
  690. </action>
  691. </mousebind>
  692. <mousebind button="A-Up" action="Click">
  693. <action name="GoToDesktop">
  694. <to>previous</to>
  695. </action>
  696. </mousebind>
  697. <mousebind button="A-Down" action="Click">
  698. <action name="GoToDesktop">
  699. <to>next</to>
  700. </action>
  701. </mousebind>
  702. </context>
  703. </mouse>
  704. <menu>
  705. <!-- You can specify more than one menu file in here and they are all loaded,
  706. just don't make menu ids clash or, well, it'll be kind of pointless -->
  707. <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  708. <!-- system menu files on Debian systems -->
  709. <file>/var/lib/openbox/debian-menu.xml</file>
  710. <file>menu.xml</file>
  711. <hideDelay>200</hideDelay>
  712. <!-- if a press-release lasts longer than this setting (in milliseconds), the
  713. menu is hidden again -->
  714. <middle>no</middle>
  715. <!-- center submenus vertically about the parent entry -->
  716. <submenuShowDelay>100</submenuShowDelay>
  717. <!-- time to delay before showing a submenu after hovering over the parent
  718. entry.
  719. if this is a negative value, then the delay is infinite and the
  720. submenu will not be shown until it is clicked on -->
  721. <submenuHideDelay>400</submenuHideDelay>
  722. <!-- time to delay before hiding a submenu when selecting another
  723. entry in parent menu
  724. if this is a negative value, then the delay is infinite and the
  725. submenu will not be hidden until a different submenu is opened -->
  726. <showIcons>yes</showIcons>
  727. <!-- controls if icons appear in the client-list-(combined-)menu -->
  728. <manageDesktops>yes</manageDesktops>
  729. <!-- show the manage desktops section in the client-list-(combined-)menu -->
  730. </menu>
  731. <applications>
  732. <application class="*">
  733. <decor>no</decor>
  734. </application>
  735. <!--
  736. # this is an example with comments through out. use these to make your
  737. # own rules, but without the comments of course.
  738. # you may use one or more of the name/class/role/title/type rules to specify
  739. # windows to match
  740. <application name="the window's _OB_APP_NAME property (see obxprop)"
  741. class="the window's _OB_APP_CLASS property (see obxprop)"
  742. groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
  743. groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
  744. role="the window's _OB_APP_ROLE property (see obxprop)"
  745. title="the window's _OB_APP_TITLE property (see obxprop)"
  746. type="the window's _OB_APP_TYPE property (see obxprob)..
  747. (if unspecified, then it is 'dialog' for child windows)">
  748. # you may set only one of name/class/role/title/type, or you may use more
  749. # than one together to restrict your matches.
  750. # the name, class, role, and title use simple wildcard matching such as those
  751. # used by a shell. you can use * to match any characters and ? to match
  752. # any single character.
  753. # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  754. # or desktop
  755. # when multiple rules match a window, they will all be applied, in the
  756. # order that they appear in this list
  757. # each rule element can be left out or set to 'default' to specify to not
  758. # change that attribute of the window
  759. <decor>yes</decor>
  760. # enable or disable window decorations
  761. <shade>no</shade>
  762. # make the window shaded when it appears, or not
  763. <position force="no">
  764. # the position is only used if both an x and y coordinate are provided
  765. # (and not set to 'default')
  766. # when force is "yes", then the window will be placed here even if it
  767. # says you want it placed elsewhere. this is to override buggy
  768. # applications who refuse to behave
  769. <x>center</x>
  770. # a number like 50, or 'center' to center on screen. use a negative number
  771. # to start from the right (or bottom for <y>), ie -50 is 50 pixels from
  772. # the right edge (or bottom). use 'default' to specify using value
  773. # provided by the application, or chosen by openbox, instead.
  774. <y>200</y>
  775. <monitor>1</monitor>
  776. # specifies the monitor in a xinerama setup.
  777. # 1 is the first head, or 'mouse' for wherever the mouse is
  778. </position>
  779. <size>
  780. # the size to make the window.
  781. <width>20</width>
  782. # a number like 20, or 'default' to use the size given by the application.
  783. # you can use fractions such as 1/2 or percentages such as 75% in which
  784. # case the value is relative to the size of the monitor that the window
  785. # appears on.
  786. <height>30%</height>
  787. </size>
  788. <focus>yes</focus>
  789. # if the window should try be given focus when it appears. if this is set
  790. # to yes it doesn't guarantee the window will be given focus. some
  791. # restrictions may apply, but Openbox will try to
  792. <desktop>1</desktop>
  793. # 1 is the first desktop, 'all' for all desktops
  794. <layer>normal</layer>
  795. # 'above', 'normal', or 'below'
  796. <iconic>no</iconic>
  797. # make the window iconified when it appears, or not
  798. <skip_pager>no</skip_pager>
  799. # asks to not be shown in pagers
  800. <skip_taskbar>no</skip_taskbar>
  801. # asks to not be shown in taskbars. window cycling actions will also
  802. # skip past such windows
  803. <fullscreen>yes</fullscreen>
  804. # make the window in fullscreen mode when it appears
  805. <maximized>true</maximized>
  806. # 'Horizontal', 'Vertical' or boolean (yes/no)
  807. </application>
  808. # end of the example
  809. -->
  810. </applications>
  811. </openbox_config>