rc.xml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  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>8</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>8</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>9</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>9</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>9</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>9</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>TopLeft</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>Vertical</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-d">
  249. <action name="ToggleShowDesktop"/>
  250. </keybind>
  251. <!-- Keybindings for windows -->
  252. <keybind key="Alt-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. <!-- Keybindings for window switching -->
  261. <keybind key="A-Tab">
  262. <action name="NextWindow">
  263. <finalactions>
  264. <action name="Focus"/>
  265. <action name="Raise"/>
  266. <action name="Unshade"/>
  267. </finalactions>
  268. </action>
  269. </keybind>
  270. <keybind key="A-S-Tab">
  271. <action name="PreviousWindow">
  272. <finalactions>
  273. <action name="Focus"/>
  274. <action name="Raise"/>
  275. <action name="Unshade"/>
  276. </finalactions>
  277. </action>
  278. </keybind>
  279. <keybind key="C-A-Tab">
  280. <action name="NextWindow">
  281. <panels>yes</panels>
  282. <desktop>yes</desktop>
  283. <finalactions>
  284. <action name="Focus"/>
  285. <action name="Raise"/>
  286. <action name="Unshade"/>
  287. </finalactions>
  288. </action>
  289. </keybind>
  290. <!-- Keybindings for window switching with the arrow keys -->
  291. <keybind key="W-S-Right">
  292. <action name="DirectionalCycleWindows">
  293. <direction>right</direction>
  294. </action>
  295. </keybind>
  296. <keybind key="W-S-Left">
  297. <action name="DirectionalCycleWindows">
  298. <direction>left</direction>
  299. </action>
  300. </keybind>
  301. <keybind key="W-S-Up">
  302. <action name="DirectionalCycleWindows">
  303. <direction>up</direction>
  304. </action>
  305. </keybind>
  306. <keybind key="W-S-Down">
  307. <action name="DirectionalCycleWindows">
  308. <direction>down</direction>
  309. </action>
  310. </keybind>
  311. <!-- Keybindings for running applications -->
  312. <keybind key="W-e">
  313. <action name="Execute">
  314. <startupnotify>
  315. <enabled>true</enabled>
  316. <name>Konqueror</name>
  317. </startupnotify>
  318. <command>kfmclient openProfile filemanagement</command>
  319. </action>
  320. </keybind>
  321. <keybind key="A-space">
  322. <action name="Execute">
  323. <command>rofi -show run</command>
  324. </action>
  325. </keybind>
  326. <keybind key="A-d">
  327. <action name="Execute">
  328. <command>dmenu_run</command>
  329. </action>
  330. </keybind>
  331. <keybind key="A-S-space">
  332. <action name="Execute">
  333. <command>rofi -show window</command>
  334. </action>
  335. </keybind>
  336. <keybind key="A-0x3D">
  337. <action name="Execute">
  338. <command>/home/swatson/Repos/dotfiles/rofi/rtmux.sh</command>
  339. </action>
  340. </keybind>
  341. <keybind key="W-Return">
  342. <action name="Execute">
  343. <command>st-term</command>
  344. </action>
  345. </keybind>
  346. <keybind key="W-space">
  347. <action name="Maximize"/>
  348. </keybind>
  349. <keybind key="W-S-space">
  350. <action name="Unmaximize"/>
  351. </keybind>
  352. <keybind key="W-S-m">
  353. <action name="Iconify"/>
  354. </keybind>
  355. <keybind key="W-s">
  356. <action name="Shade"/>
  357. </keybind>
  358. <keybind key="W-S-s">
  359. <action name="Unshade"/>
  360. </keybind>
  361. </keyboard>
  362. <mouse>
  363. <dragThreshold>1</dragThreshold>
  364. <!-- number of pixels the mouse must move before a drag begins -->
  365. <doubleClickTime>500</doubleClickTime>
  366. <!-- in milliseconds (1000 = 1 second) -->
  367. <screenEdgeWarpTime>400</screenEdgeWarpTime>
  368. <!-- Time before changing desktops when the pointer touches the edge of the
  369. screen while moving a window, in milliseconds (1000 = 1 second).
  370. Set this to 0 to disable warping -->
  371. <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  372. <!-- Set this to TRUE to move the mouse pointer across the desktop when
  373. switching due to hitting the edge of the screen -->
  374. <context name="Frame">
  375. <mousebind button="A-Left" action="Press">
  376. <action name="Focus"/>
  377. <action name="Raise"/>
  378. </mousebind>
  379. <mousebind button="A-Left" action="Click">
  380. <action name="Unshade"/>
  381. </mousebind>
  382. <mousebind button="A-Left" action="Drag">
  383. <action name="Move"/>
  384. </mousebind>
  385. <mousebind button="A-Right" action="Press">
  386. <action name="Focus"/>
  387. <action name="Raise"/>
  388. <action name="Unshade"/>
  389. </mousebind>
  390. <mousebind button="A-Right" action="Drag">
  391. <action name="Resize"/>
  392. </mousebind>
  393. <mousebind button="A-Middle" action="Press">
  394. <action name="Lower"/>
  395. <action name="FocusToBottom"/>
  396. <action name="Unfocus"/>
  397. </mousebind>
  398. <mousebind button="A-Up" action="Click">
  399. <action name="GoToDesktop">
  400. <to>previous</to>
  401. </action>
  402. </mousebind>
  403. <mousebind button="A-Down" action="Click">
  404. <action name="GoToDesktop">
  405. <to>next</to>
  406. </action>
  407. </mousebind>
  408. <mousebind button="C-A-Up" action="Click">
  409. <action name="GoToDesktop">
  410. <to>previous</to>
  411. </action>
  412. </mousebind>
  413. <mousebind button="C-A-Down" action="Click">
  414. <action name="GoToDesktop">
  415. <to>next</to>
  416. </action>
  417. </mousebind>
  418. <mousebind button="A-S-Up" action="Click">
  419. <action name="SendToDesktop">
  420. <to>previous</to>
  421. </action>
  422. </mousebind>
  423. <mousebind button="A-S-Down" action="Click">
  424. <action name="SendToDesktop">
  425. <to>next</to>
  426. </action>
  427. </mousebind>
  428. </context>
  429. <context name="Titlebar">
  430. <mousebind button="Left" action="Drag">
  431. <action name="Move"/>
  432. </mousebind>
  433. <mousebind button="Left" action="DoubleClick">
  434. <action name="ToggleMaximize"/>
  435. </mousebind>
  436. <mousebind button="Up" action="Click">
  437. <action name="if">
  438. <shaded>no</shaded>
  439. <then>
  440. <action name="Shade"/>
  441. <action name="FocusToBottom"/>
  442. <action name="Unfocus"/>
  443. <action name="Lower"/>
  444. </then>
  445. </action>
  446. </mousebind>
  447. <mousebind button="Down" action="Click">
  448. <action name="if">
  449. <shaded>yes</shaded>
  450. <then>
  451. <action name="Unshade"/>
  452. <action name="Raise"/>
  453. </then>
  454. </action>
  455. </mousebind>
  456. </context>
  457. <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  458. <mousebind button="Left" action="Press">
  459. <action name="Focus"/>
  460. <action name="Raise"/>
  461. <action name="Unshade"/>
  462. </mousebind>
  463. <mousebind button="Middle" action="Press">
  464. <action name="Lower"/>
  465. <action name="FocusToBottom"/>
  466. <action name="Unfocus"/>
  467. </mousebind>
  468. <mousebind button="Right" action="Press">
  469. <action name="Focus"/>
  470. <action name="Raise"/>
  471. <action name="ShowMenu">
  472. <menu>client-menu</menu>
  473. </action>
  474. </mousebind>
  475. </context>
  476. <context name="Top">
  477. <mousebind button="Left" action="Drag">
  478. <action name="Resize">
  479. <edge>top</edge>
  480. </action>
  481. </mousebind>
  482. </context>
  483. <context name="Left">
  484. <mousebind button="Left" action="Drag">
  485. <action name="Resize">
  486. <edge>left</edge>
  487. </action>
  488. </mousebind>
  489. </context>
  490. <context name="Right">
  491. <mousebind button="Left" action="Drag">
  492. <action name="Resize">
  493. <edge>right</edge>
  494. </action>
  495. </mousebind>
  496. </context>
  497. <context name="Bottom">
  498. <mousebind button="Left" action="Drag">
  499. <action name="Resize">
  500. <edge>bottom</edge>
  501. </action>
  502. </mousebind>
  503. <mousebind button="Right" action="Press">
  504. <action name="Focus"/>
  505. <action name="Raise"/>
  506. <action name="ShowMenu">
  507. <menu>client-menu</menu>
  508. </action>
  509. </mousebind>
  510. </context>
  511. <context name="TRCorner BRCorner TLCorner BLCorner">
  512. <mousebind button="Left" action="Press">
  513. <action name="Focus"/>
  514. <action name="Raise"/>
  515. <action name="Unshade"/>
  516. </mousebind>
  517. <mousebind button="Left" action="Drag">
  518. <action name="Resize"/>
  519. </mousebind>
  520. </context>
  521. <context name="Client">
  522. <mousebind button="Left" action="Press">
  523. <action name="Focus"/>
  524. <action name="Raise"/>
  525. </mousebind>
  526. <mousebind button="Middle" action="Press">
  527. <action name="Focus"/>
  528. <action name="Raise"/>
  529. </mousebind>
  530. <mousebind button="Right" action="Press">
  531. <action name="Focus"/>
  532. <action name="Raise"/>
  533. </mousebind>
  534. </context>
  535. <context name="Icon">
  536. <mousebind button="Left" action="Press">
  537. <action name="Focus"/>
  538. <action name="Raise"/>
  539. <action name="Unshade"/>
  540. <action name="ShowMenu">
  541. <menu>client-menu</menu>
  542. </action>
  543. </mousebind>
  544. <mousebind button="Right" action="Press">
  545. <action name="Focus"/>
  546. <action name="Raise"/>
  547. <action name="ShowMenu">
  548. <menu>client-menu</menu>
  549. </action>
  550. </mousebind>
  551. </context>
  552. <context name="AllDesktops">
  553. <mousebind button="Left" action="Press">
  554. <action name="Focus"/>
  555. <action name="Raise"/>
  556. <action name="Unshade"/>
  557. </mousebind>
  558. <mousebind button="Left" action="Click">
  559. <action name="ToggleOmnipresent"/>
  560. </mousebind>
  561. </context>
  562. <context name="Shade">
  563. <mousebind button="Left" action="Press">
  564. <action name="Focus"/>
  565. <action name="Raise"/>
  566. </mousebind>
  567. <mousebind button="Left" action="Click">
  568. <action name="ToggleShade"/>
  569. </mousebind>
  570. </context>
  571. <context name="Iconify">
  572. <mousebind button="Left" action="Press">
  573. <action name="Focus"/>
  574. <action name="Raise"/>
  575. </mousebind>
  576. <mousebind button="Left" action="Click">
  577. <action name="Iconify"/>
  578. </mousebind>
  579. </context>
  580. <context name="Maximize">
  581. <mousebind button="Left" action="Press">
  582. <action name="Focus"/>
  583. <action name="Raise"/>
  584. <action name="Unshade"/>
  585. </mousebind>
  586. <mousebind button="Middle" action="Press">
  587. <action name="Focus"/>
  588. <action name="Raise"/>
  589. <action name="Unshade"/>
  590. </mousebind>
  591. <mousebind button="Right" action="Press">
  592. <action name="Focus"/>
  593. <action name="Raise"/>
  594. <action name="Unshade"/>
  595. </mousebind>
  596. <mousebind button="Left" action="Click">
  597. <action name="ToggleMaximize"/>
  598. </mousebind>
  599. <mousebind button="Middle" action="Click">
  600. <action name="ToggleMaximize">
  601. <direction>vertical</direction>
  602. </action>
  603. </mousebind>
  604. <mousebind button="Right" action="Click">
  605. <action name="ToggleMaximize">
  606. <direction>horizontal</direction>
  607. </action>
  608. </mousebind>
  609. </context>
  610. <context name="Close">
  611. <mousebind button="Left" action="Press">
  612. <action name="Focus"/>
  613. <action name="Raise"/>
  614. <action name="Unshade"/>
  615. </mousebind>
  616. <mousebind button="Left" action="Click">
  617. <action name="Close"/>
  618. </mousebind>
  619. </context>
  620. <context name="Desktop">
  621. <mousebind button="Up" action="Click">
  622. <action name="GoToDesktop">
  623. <to>previous</to>
  624. </action>
  625. </mousebind>
  626. <mousebind button="Down" action="Click">
  627. <action name="GoToDesktop">
  628. <to>next</to>
  629. </action>
  630. </mousebind>
  631. <mousebind button="A-Up" action="Click">
  632. <action name="GoToDesktop">
  633. <to>previous</to>
  634. </action>
  635. </mousebind>
  636. <mousebind button="A-Down" action="Click">
  637. <action name="GoToDesktop">
  638. <to>next</to>
  639. </action>
  640. </mousebind>
  641. <mousebind button="C-A-Up" action="Click">
  642. <action name="GoToDesktop">
  643. <to>previous</to>
  644. </action>
  645. </mousebind>
  646. <mousebind button="C-A-Down" action="Click">
  647. <action name="GoToDesktop">
  648. <to>next</to>
  649. </action>
  650. </mousebind>
  651. <mousebind button="Left" action="Press">
  652. <action name="Focus"/>
  653. <action name="Raise"/>
  654. </mousebind>
  655. <mousebind button="Right" action="Press">
  656. <action name="Focus"/>
  657. <action name="Raise"/>
  658. </mousebind>
  659. </context>
  660. <context name="Root">
  661. <!-- Menus -->
  662. <mousebind button="Middle" action="Press">
  663. <action name="ShowMenu">
  664. <menu>client-list-combined-menu</menu>
  665. </action>
  666. </mousebind>
  667. <mousebind button="Right" action="Press">
  668. <action name="ShowMenu">
  669. <menu>root-menu</menu>
  670. </action>
  671. </mousebind>
  672. </context>
  673. <context name="MoveResize">
  674. <mousebind button="Up" action="Click">
  675. <action name="GoToDesktop">
  676. <to>previous</to>
  677. </action>
  678. </mousebind>
  679. <mousebind button="Down" action="Click">
  680. <action name="GoToDesktop">
  681. <to>next</to>
  682. </action>
  683. </mousebind>
  684. <mousebind button="A-Up" action="Click">
  685. <action name="GoToDesktop">
  686. <to>previous</to>
  687. </action>
  688. </mousebind>
  689. <mousebind button="A-Down" action="Click">
  690. <action name="GoToDesktop">
  691. <to>next</to>
  692. </action>
  693. </mousebind>
  694. </context>
  695. </mouse>
  696. <menu>
  697. <!-- You can specify more than one menu file in here and they are all loaded,
  698. just don't make menu ids clash or, well, it'll be kind of pointless -->
  699. <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  700. <file>menu.xml</file>
  701. <hideDelay>200</hideDelay>
  702. <!-- if a press-release lasts longer than this setting (in milliseconds), the
  703. menu is hidden again -->
  704. <middle>no</middle>
  705. <!-- center submenus vertically about the parent entry -->
  706. <submenuShowDelay>100</submenuShowDelay>
  707. <!-- time to delay before showing a submenu after hovering over the parent
  708. entry.
  709. if this is a negative value, then the delay is infinite and the
  710. submenu will not be shown until it is clicked on -->
  711. <submenuHideDelay>400</submenuHideDelay>
  712. <!-- time to delay before hiding a submenu when selecting another
  713. entry in parent menu
  714. if this is a negative value, then the delay is infinite and the
  715. submenu will not be hidden until a different submenu is opened -->
  716. <showIcons>yes</showIcons>
  717. <!-- controls if icons appear in the client-list-(combined-)menu -->
  718. <manageDesktops>yes</manageDesktops>
  719. <!-- show the manage desktops section in the client-list-(combined-)menu -->
  720. </menu>
  721. <applications>
  722. <!--
  723. # this is an example with comments through out. use these to make your
  724. # own rules, but without the comments of course.
  725. # you may use one or more of the name/class/role/title/type rules to specify
  726. # windows to match
  727. <application name="the window's _OB_APP_NAME property (see obxprop)"
  728. class="the window's _OB_APP_CLASS property (see obxprop)"
  729. groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
  730. groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
  731. role="the window's _OB_APP_ROLE property (see obxprop)"
  732. title="the window's _OB_APP_TITLE property (see obxprop)"
  733. type="the window's _OB_APP_TYPE property (see obxprob)..
  734. (if unspecified, then it is 'dialog' for child windows)">
  735. # you may set only one of name/class/role/title/type, or you may use more
  736. # than one together to restrict your matches.
  737. # the name, class, role, and title use simple wildcard matching such as those
  738. # used by a shell. you can use * to match any characters and ? to match
  739. # any single character.
  740. # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  741. # or desktop
  742. # when multiple rules match a window, they will all be applied, in the
  743. # order that they appear in this list
  744. # each rule element can be left out or set to 'default' to specify to not
  745. # change that attribute of the window
  746. <decor>yes</decor>
  747. # enable or disable window decorations
  748. <shade>no</shade>
  749. # make the window shaded when it appears, or not
  750. <position force="no">
  751. # the position is only used if both an x and y coordinate are provided
  752. # (and not set to 'default')
  753. # when force is "yes", then the window will be placed here even if it
  754. # says you want it placed elsewhere. this is to override buggy
  755. # applications who refuse to behave
  756. <x>center</x>
  757. # a number like 50, or 'center' to center on screen. use a negative number
  758. # to start from the right (or bottom for <y>), ie -50 is 50 pixels from
  759. # the right edge (or bottom). use 'default' to specify using value
  760. # provided by the application, or chosen by openbox, instead.
  761. <y>200</y>
  762. <monitor>1</monitor>
  763. # specifies the monitor in a xinerama setup.
  764. # 1 is the first head, or 'mouse' for wherever the mouse is
  765. </position>
  766. <size>
  767. # the size to make the window.
  768. <width>20</width>
  769. # a number like 20, or 'default' to use the size given by the application.
  770. # you can use fractions such as 1/2 or percentages such as 75% in which
  771. # case the value is relative to the size of the monitor that the window
  772. # appears on.
  773. <height>30%</height>
  774. </size>
  775. <focus>yes</focus>
  776. # if the window should try be given focus when it appears. if this is set
  777. # to yes it doesn't guarantee the window will be given focus. some
  778. # restrictions may apply, but Openbox will try to
  779. <desktop>1</desktop>
  780. # 1 is the first desktop, 'all' for all desktops
  781. <layer>normal</layer>
  782. # 'above', 'normal', or 'below'
  783. <iconic>no</iconic>
  784. # make the window iconified when it appears, or not
  785. <skip_pager>no</skip_pager>
  786. # asks to not be shown in pagers
  787. <skip_taskbar>no</skip_taskbar>
  788. # asks to not be shown in taskbars. window cycling actions will also
  789. # skip past such windows
  790. <fullscreen>yes</fullscreen>
  791. # make the window in fullscreen mode when it appears
  792. <maximized>true</maximized>
  793. # 'Horizontal', 'Vertical' or boolean (yes/no)
  794. </application>
  795. # end of the example
  796. -->
  797. </applications>
  798. </openbox_config>