No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

859 líneas
27 KiB

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