BSDG33KCLUB

rc.xml for OpenBox BSD

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