Advertisement
Guest User

OpenBox RC

a guest
Dec 2nd, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.53 KB | None | 0 0
  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. <center>yes</center>
  31. <!-- whether to place windows in the center of the free area found or
  32. the top left corner -->
  33. <monitor>Mouse</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>Mouse</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>Lubuntu-default</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>Ubuntu Medium</name>
  61. <size>11</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>Ubuntu Medium</name>
  70. <size>11</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>Ubuntu</name>
  79. <size>11</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>Ubuntu</name>
  88. <size>11</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>Ubuntu Medium</name>
  97. <size>11</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>Ubuntu Medium</name>
  106. <size>11</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.  
  118. these are default values to use when other ones are not already set
  119. by other applications, or saved in your session
  120.  
  121. use obconf if you want to change these without having to log out
  122. and back in -->
  123. <number>2</number>
  124. <firstdesk>1</firstdesk>
  125. <names>
  126. <!-- set names up here if you want to, like this:
  127. <name>desktop 1</name>
  128. <name>desktop 2</name>
  129. -->
  130. </names>
  131. <popupTime>875</popupTime>
  132. <!-- The number of milliseconds to show the popup for when switching
  133. desktops. Set this to 0 to disable the popup. -->
  134. </desktops>
  135. <resize>
  136. <drawContents>yes</drawContents>
  137. <popupShow>Nonpixel</popupShow>
  138. <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  139. <popupPosition>Center</popupPosition>
  140. <!-- 'Center', 'Top', or 'Fixed' -->
  141. <popupFixedPosition>
  142. <!-- these are used if popupPosition is set to 'Fixed' -->
  143. <x>10</x>
  144. <!-- positive number for distance from left edge, negative number for
  145. distance from right edge, or 'Center' -->
  146. <y>10</y>
  147. <!-- positive number for distance from top edge, negative number for
  148. distance from bottom edge, or 'Center' -->
  149. </popupFixedPosition>
  150. </resize>
  151. <!-- You can reserve a portion of your screen where windows will not cover when
  152. they are maximized, or when they are initially placed.
  153. Many programs reserve space automatically, but you can use this in other
  154. cases. -->
  155. <margins>
  156. <top>0</top>
  157. <bottom>0</bottom>
  158. <left>0</left>
  159. <right>0</right>
  160. </margins>
  161. <dock>
  162. <position>TopLeft</position>
  163. <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  164. <floatingX>0</floatingX>
  165. <floatingY>0</floatingY>
  166. <noStrut>no</noStrut>
  167. <stacking>Above</stacking>
  168. <!-- 'Above', 'Normal', or 'Below' -->
  169. <direction>Vertical</direction>
  170. <!-- 'Vertical' or 'Horizontal' -->
  171. <autoHide>no</autoHide>
  172. <hideDelay>300</hideDelay>
  173. <!-- in milliseconds (1000 = 1 second) -->
  174. <showDelay>300</showDelay>
  175. <!-- in milliseconds (1000 = 1 second) -->
  176. <moveButton>Middle</moveButton>
  177. <!-- 'Left', 'Middle', 'Right' -->
  178. </dock>
  179. <keyboard>
  180. <chainQuitKey>C-g</chainQuitKey>
  181. <!-- Keybindings for desktop switching -->
  182. <keybind key="C-A-Left">
  183. <action name="GoToDesktop">
  184. <to>left</to>
  185. <wrap>no</wrap>
  186. </action>
  187. </keybind>
  188. <keybind key="C-A-Right">
  189. <action name="GoToDesktop">
  190. <to>right</to>
  191. <wrap>no</wrap>
  192. </action>
  193. </keybind>
  194. <keybind key="C-A-Up">
  195. <action name="GoToDesktop">
  196. <to>up</to>
  197. <wrap>no</wrap>
  198. </action>
  199. </keybind>
  200. <keybind key="C-A-Down">
  201. <action name="GoToDesktop">
  202. <to>down</to>
  203. <wrap>no</wrap>
  204. </action>
  205. </keybind>
  206. <keybind key="S-A-Left">
  207. <action name="SendToDesktop">
  208. <to>left</to>
  209. <wrap>no</wrap>
  210. </action>
  211. </keybind>
  212. <keybind key="S-A-Right">
  213. <action name="SendToDesktop">
  214. <to>right</to>
  215. <wrap>no</wrap>
  216. </action>
  217. </keybind>
  218. <keybind key="S-A-Up">
  219. <action name="SendToDesktop">
  220. <to>up</to>
  221. <wrap>no</wrap>
  222. </action>
  223. </keybind>
  224. <keybind key="S-A-Down">
  225. <action name="SendToDesktop">
  226. <to>down</to>
  227. <wrap>no</wrap>
  228. </action>
  229. </keybind>
  230. <keybind key="W-F1">
  231. <action name="GoToDesktop">
  232. <to>1</to>
  233. </action>
  234. </keybind>
  235. <keybind key="W-F2">
  236. <action name="GoToDesktop">
  237. <to>2</to>
  238. </action>
  239. </keybind>
  240. <keybind key="W-F3">
  241. <action name="GoToDesktop">
  242. <to>3</to>
  243. </action>
  244. </keybind>
  245. <keybind key="W-F4">
  246. <action name="GoToDesktop">
  247. <to>4</to>
  248. </action>
  249. </keybind>
  250. <keybind key="W-d">
  251. <action name="ToggleShowDesktop"/>
  252. </keybind>
  253. <!-- Keybindings for windows -->
  254. <keybind key="A-F4">
  255. <action name="Close"/>
  256. </keybind>
  257. <keybind key="A-Escape">
  258. <action name="Lower"/>
  259. <action name="FocusToBottom"/>
  260. <action name="Unfocus"/>
  261. </keybind>
  262. <keybind key="A-space">
  263. <action name="ShowMenu">
  264. <menu>client-menu</menu>
  265. </action>
  266. </keybind>
  267. <!-- Take a screenshot of the current window with scrot when Alt+Print are pressed -->
  268. <keybind key="A-Print">
  269. <action name="Execute">
  270. <command>scrot -u -b</command>
  271. </action>
  272. </keybind>
  273. <!-- Keybindings for window switching -->
  274. <keybind key="A-Tab">
  275. <action name="NextWindow">
  276. <dialog>icons</dialog>
  277. <finalactions>
  278. <action name="Focus"/>
  279. <action name="Raise"/>
  280. <action name="Unshade"/>
  281. </finalactions>
  282. </action>
  283. </keybind>
  284. <keybind key="A-S-Tab">
  285. <action name="PreviousWindow">
  286. <finalactions>
  287. <action name="Focus"/>
  288. <action name="Raise"/>
  289. <action name="Unshade"/>
  290. </finalactions>
  291. </action>
  292. </keybind>
  293. <keybind key="C-A-Tab">
  294. <action name="NextWindow">
  295. <panels>yes</panels>
  296. <desktop>yes</desktop>
  297. <finalactions>
  298. <action name="Focus"/>
  299. <action name="Raise"/>
  300. <action name="Unshade"/>
  301. </finalactions>
  302. </action>
  303. </keybind>
  304. <!-- Keybindings for window switching with the arrow keys -->
  305. <keybind key="W-S-Right">
  306. <action name="DirectionalCycleWindows">
  307. <direction>right</direction>
  308. </action>
  309. </keybind>
  310. <keybind key="W-S-Left">
  311. <action name="DirectionalCycleWindows">
  312. <direction>left</direction>
  313. </action>
  314. </keybind>
  315. <keybind key="W-S-Up">
  316. <action name="DirectionalCycleWindows">
  317. <direction>up</direction>
  318. </action>
  319. </keybind>
  320. <keybind key="W-S-Down">
  321. <action name="DirectionalCycleWindows">
  322. <direction>down</direction>
  323. </action>
  324. </keybind>
  325. <!-- Keybindings for running applications on Home + E -->
  326. <keybind key="W-e">
  327. <action name="Execute">
  328. <startupnotify>
  329. <enabled>true</enabled>
  330. <name>PCManFM</name>
  331. </startupnotify>
  332. <command>pcmanfm</command>
  333. </action>
  334. </keybind>
  335. <!-- Keybindings for running Run menu from Lxpanel on Home + R-->
  336. <keybind key="W-r">
  337. <action name="Execute">
  338. <command>lxpanelctl run</command>
  339. </action>
  340. </keybind>
  341. <keybind key="A-F2">
  342. <action name="Execute">
  343. <command>lxpanelctl run</command>
  344. </action>
  345. </keybind>
  346. <!-- Keybindings for running Menu from Lxpanel -->
  347. <keybind key="A-F1">
  348. <action name="Execute">
  349. <command>lxpanelctl menu</command>
  350. </action>
  351. </keybind>
  352. <keybind key="C-Escape">
  353. <action name="Execute">
  354. <command>lxpanelctl menu</command>
  355. </action>
  356. </keybind>
  357. <!-- Keybindings to toggle fullscreen -->
  358. <keybind key="F11">
  359. <action name="ToggleFullscreen"/>
  360. </keybind>
  361. <!-- Launch task manager on Ctrl + Alt + Del-->
  362. <keybind key="C-A-Delete">
  363. <action name="Execute">
  364. <command>lxtask</command>
  365. </action>
  366. </keybind>
  367. <!-- Launch a terminal on Ctrl + Alt + T-->
  368. <keybind key="C-A-T">
  369. <action name="Execute">
  370. <command>x-terminal-emulator</command>
  371. </action>
  372. </keybind>
  373. <!-- Launch a filemanager on Ctrl + Alt + D-->
  374. <keybind key="C-A-D">
  375. <action name="Execute">
  376. <startupnotify>
  377. <enabled>true</enabled>
  378. <name>PCManFM</name>
  379. </startupnotify>
  380. <command>pcmanfm</command>
  381. </action>
  382. </keybind>
  383. <!-- Lock the screen on Ctrl + Alt + l-->
  384. <keybind key="C-A-l">
  385. <action name="Execute">
  386. <command>xscreensaver-command -lock</command>
  387. </action>
  388. </keybind>
  389. <!-- Keybinding for Volume management -->
  390. <keybind key="XF86AudioRaiseVolume">
  391. <action name="Execute">
  392. <command>amixer -q sset Master 3%+ unmute</command>
  393. </action>
  394. </keybind>
  395. <keybind key="XF86AudioLowerVolume">
  396. <action name="Execute">
  397. <command>amixer -q sset Master 3%- unmute</command>
  398. </action>
  399. </keybind>
  400. <keybind key="XF86AudioMute">
  401. <action name="Execute">
  402. <command>amixer -q sset Master toggle</command>
  403. </action>
  404. </keybind>
  405. <!-- Keybinding for terminal button-->
  406. <keybind key="XF86WWW">
  407. <action name="Execute">
  408. <command>x-terminal-emulator</command>
  409. </action>
  410. </keybind>
  411. <keybind key="XF86Terminal">
  412. <action name="Execute">
  413. <command>x-terminal-emulator</command>
  414. </action>
  415. </keybind>
  416. <!-- Keybinding for calculator button-->
  417. <keybind key="XF86Calculator">
  418. <action name="Execute">
  419. <command>galculator</command>
  420. </action>
  421. </keybind>
  422. <!-- Keybinding for computer button-->
  423. <keybind key="XF86MyComputer">
  424. <action name="Execute">
  425. <command>pcmanfm</command>
  426. </action>
  427. </keybind>
  428. <!-- Keybindings for Multimedia Keys and LCD Backlight (alternative when not using gnome-power-manager or xfce4-volumed) -->
  429. <keybind key="C-F7">
  430. <action name="Execute">
  431. <command>sleep 2;xset dpms force off</command>
  432. </action>
  433. </keybind>
  434. <keybind key="C-F10">
  435. <action name="Execute">
  436. <command>xbacklight -dec 10</command>
  437. </action>
  438. </keybind>
  439. <keybind key="C-F11">
  440. <action name="Execute">
  441. <command>xbacklight -inc 10</command>
  442. </action>
  443. </keybind>
  444. <!-- Launch scrot when Print is pressed -->
  445. <keybind key="Print">
  446. <action name="Execute">
  447. <command>scrot</command>
  448. </action>
  449. </keybind>
  450. <!-- Launch logout when push on the shutdown button -->
  451. <keybind key="XF86PowerOff">
  452. <action name="Execute">
  453. <command>lubuntu-logout</command>
  454. </action>
  455. </keybind>
  456. </keyboard>
  457. <mouse>
  458. <dragThreshold>8</dragThreshold>
  459. <!-- number of pixels the mouse must move before a drag begins -->
  460. <doubleClickTime>200</doubleClickTime>
  461. <!-- in milliseconds (1000 = 1 second) -->
  462. <screenEdgeWarpTime>400</screenEdgeWarpTime>
  463. <!-- Time before changing desktops when the pointer touches the edge of the
  464. screen while moving a window, in milliseconds (1000 = 1 second).
  465. Set this to 0 to disable warping -->
  466. <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  467. <!-- Set this to TRUE to move the mouse pointer across the desktop when
  468. switching due to hitting the edge of the screen -->
  469. <context name="Frame">
  470. <mousebind button="A-Left" action="Press">
  471. <action name="Focus"/>
  472. <action name="Raise"/>
  473. </mousebind>
  474. <mousebind button="A-Left" action="Click">
  475. <action name="Unshade"/>
  476. </mousebind>
  477. <mousebind button="A-Left" action="Drag">
  478. <action name="Move"/>
  479. </mousebind>
  480. <mousebind button="A-Right" action="Press">
  481. <action name="Focus"/>
  482. <action name="Raise"/>
  483. <action name="Unshade"/>
  484. </mousebind>
  485. <mousebind button="A-Right" action="Drag">
  486. <action name="Resize"/>
  487. </mousebind>
  488. <mousebind button="A-Middle" action="Press">
  489. <action name="Lower"/>
  490. <action name="FocusToBottom"/>
  491. <action name="Unfocus"/>
  492. </mousebind>
  493. <mousebind button="A-Up" action="Click">
  494. <action name="GoToDesktop">
  495. <to>previous</to>
  496. </action>
  497. </mousebind>
  498. <mousebind button="A-Down" action="Click">
  499. <action name="GoToDesktop">
  500. <to>next</to>
  501. </action>
  502. </mousebind>
  503. <mousebind button="C-A-Up" action="Click">
  504. <action name="GoToDesktop">
  505. <to>previous</to>
  506. </action>
  507. </mousebind>
  508. <mousebind button="C-A-Down" action="Click">
  509. <action name="GoToDesktop">
  510. <to>next</to>
  511. </action>
  512. </mousebind>
  513. <mousebind button="A-S-Up" action="Click">
  514. <action name="SendToDesktop">
  515. <to>previous</to>
  516. </action>
  517. </mousebind>
  518. <mousebind button="A-S-Down" action="Click">
  519. <action name="SendToDesktop">
  520. <to>next</to>
  521. </action>
  522. </mousebind>
  523. </context>
  524. <context name="Titlebar">
  525. <mousebind button="Left" action="Drag">
  526. <action name="Move"/>
  527. </mousebind>
  528. <mousebind button="Left" action="DoubleClick">
  529. <action name="ToggleMaximize"/>
  530. </mousebind>
  531. <mousebind button="Up" action="Click">
  532. <action name="if">
  533. <shaded>no</shaded>
  534. <then>
  535. <action name="Shade"/>
  536. <action name="FocusToBottom"/>
  537. <action name="Unfocus"/>
  538. <action name="Lower"/>
  539. </then>
  540. </action>
  541. </mousebind>
  542. <mousebind button="Down" action="Click">
  543. <action name="if">
  544. <shaded>yes</shaded>
  545. <then>
  546. <action name="Unshade"/>
  547. <action name="Raise"/>
  548. </then>
  549. </action>
  550. </mousebind>
  551. </context>
  552. <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  553. <mousebind button="Left" action="Press">
  554. <action name="Focus"/>
  555. <action name="Raise"/>
  556. <action name="Unshade"/>
  557. </mousebind>
  558. <mousebind button="Middle" action="Press">
  559. <action name="Lower"/>
  560. <action name="FocusToBottom"/>
  561. <action name="Unfocus"/>
  562. </mousebind>
  563. <mousebind button="Right" action="Press">
  564. <action name="Focus"/>
  565. <action name="Raise"/>
  566. <action name="ShowMenu">
  567. <menu>client-menu</menu>
  568. </action>
  569. </mousebind>
  570. </context>
  571. <context name="Top">
  572. <mousebind button="Left" action="Drag">
  573. <action name="Resize">
  574. <edge>top</edge>
  575. </action>
  576. </mousebind>
  577. </context>
  578. <context name="Left">
  579. <mousebind button="Left" action="Drag">
  580. <action name="Resize">
  581. <edge>left</edge>
  582. </action>
  583. </mousebind>
  584. </context>
  585. <context name="Right">
  586. <mousebind button="Left" action="Drag">
  587. <action name="Resize">
  588. <edge>right</edge>
  589. </action>
  590. </mousebind>
  591. </context>
  592. <context name="Bottom">
  593. <mousebind button="Left" action="Drag">
  594. <action name="Resize">
  595. <edge>bottom</edge>
  596. </action>
  597. </mousebind>
  598. <mousebind button="Right" action="Press">
  599. <action name="Focus"/>
  600. <action name="Raise"/>
  601. <action name="ShowMenu">
  602. <menu>client-menu</menu>
  603. </action>
  604. </mousebind>
  605. </context>
  606. <context name="TRCorner BRCorner TLCorner BLCorner">
  607. <mousebind button="Left" action="Press">
  608. <action name="Focus"/>
  609. <action name="Raise"/>
  610. <action name="Unshade"/>
  611. </mousebind>
  612. <mousebind button="Left" action="Drag">
  613. <action name="Resize"/>
  614. </mousebind>
  615. </context>
  616. <context name="Client">
  617. <mousebind button="Left" action="Press">
  618. <action name="Focus"/>
  619. <action name="Raise"/>
  620. </mousebind>
  621. <mousebind button="Middle" action="Press">
  622. <action name="Focus"/>
  623. <action name="Raise"/>
  624. </mousebind>
  625. <mousebind button="Right" action="Press">
  626. <action name="Focus"/>
  627. <action name="Raise"/>
  628. </mousebind>
  629. </context>
  630. <context name="Icon">
  631. <mousebind button="Left" action="Press">
  632. <action name="Focus"/>
  633. <action name="Raise"/>
  634. <action name="Unshade"/>
  635. <action name="ShowMenu">
  636. <menu>client-menu</menu>
  637. </action>
  638. </mousebind>
  639. <mousebind button="Right" action="Press">
  640. <action name="Focus"/>
  641. <action name="Raise"/>
  642. <action name="ShowMenu">
  643. <menu>client-menu</menu>
  644. </action>
  645. </mousebind>
  646. </context>
  647. <context name="AllDesktops">
  648. <mousebind button="Left" action="Press">
  649. <action name="Focus"/>
  650. <action name="Raise"/>
  651. <action name="Unshade"/>
  652. </mousebind>
  653. <mousebind button="Left" action="Click">
  654. <action name="ToggleOmnipresent"/>
  655. </mousebind>
  656. </context>
  657. <context name="Shade">
  658. <mousebind button="Left" action="Press">
  659. <action name="Focus"/>
  660. <action name="Raise"/>
  661. </mousebind>
  662. <mousebind button="Left" action="Click">
  663. <action name="ToggleShade"/>
  664. </mousebind>
  665. </context>
  666. <context name="Iconify">
  667. <mousebind button="Left" action="Press">
  668. <action name="Focus"/>
  669. <action name="Raise"/>
  670. </mousebind>
  671. <mousebind button="Left" action="Click">
  672. <action name="Iconify"/>
  673. </mousebind>
  674. </context>
  675. <context name="Maximize">
  676. <mousebind button="Left" action="Press">
  677. <action name="Focus"/>
  678. <action name="Raise"/>
  679. <action name="Unshade"/>
  680. </mousebind>
  681. <mousebind button="Middle" action="Press">
  682. <action name="Focus"/>
  683. <action name="Raise"/>
  684. <action name="Unshade"/>
  685. </mousebind>
  686. <mousebind button="Right" action="Press">
  687. <action name="Focus"/>
  688. <action name="Raise"/>
  689. <action name="Unshade"/>
  690. </mousebind>
  691. <mousebind button="Left" action="Click">
  692. <action name="ToggleMaximize"/>
  693. </mousebind>
  694. <mousebind button="Middle" action="Click">
  695. <action name="ToggleMaximize">
  696. <direction>vertical</direction>
  697. </action>
  698. </mousebind>
  699. <mousebind button="Right" action="Click">
  700. <action name="ToggleMaximize">
  701. <direction>horizontal</direction>
  702. </action>
  703. </mousebind>
  704. </context>
  705. <context name="Close">
  706. <mousebind button="Left" action="Press">
  707. <action name="Focus"/>
  708. <action name="Raise"/>
  709. <action name="Unshade"/>
  710. </mousebind>
  711. <mousebind button="Left" action="Click">
  712. <action name="Close"/>
  713. </mousebind>
  714. </context>
  715. <context name="Desktop">
  716. <mousebind button="Up" action="Click">
  717. <action name="GoToDesktop">
  718. <to>previous</to>
  719. </action>
  720. </mousebind>
  721. <mousebind button="Down" action="Click">
  722. <action name="GoToDesktop">
  723. <to>next</to>
  724. </action>
  725. </mousebind>
  726. <mousebind button="A-Up" action="Click">
  727. <action name="GoToDesktop">
  728. <to>previous</to>
  729. </action>
  730. </mousebind>
  731. <mousebind button="A-Down" action="Click">
  732. <action name="GoToDesktop">
  733. <to>next</to>
  734. </action>
  735. </mousebind>
  736. <mousebind button="C-A-Up" action="Click">
  737. <action name="GoToDesktop">
  738. <to>previous</to>
  739. </action>
  740. </mousebind>
  741. <mousebind button="C-A-Down" action="Click">
  742. <action name="GoToDesktop">
  743. <to>next</to>
  744. </action>
  745. </mousebind>
  746. <mousebind button="Left" action="Press">
  747. <action name="Focus"/>
  748. <action name="Raise"/>
  749. </mousebind>
  750. <mousebind button="Right" action="Press">
  751. <action name="Focus"/>
  752. <action name="Raise"/>
  753. </mousebind>
  754. </context>
  755. <context name="Root">
  756. <!-- Menus -->
  757. <mousebind button="Middle" action="Press">
  758. <action name="ShowMenu">
  759. <menu>client-list-combined-menu</menu>
  760. </action>
  761. </mousebind>
  762. <mousebind button="Right" action="Press">
  763. <action name="ShowMenu">
  764. <menu>root-menu</menu>
  765. </action>
  766. </mousebind>
  767. </context>
  768. <context name="MoveResize">
  769. <mousebind button="Up" action="Click">
  770. <action name="GoToDesktop">
  771. <to>previous</to>
  772. </action>
  773. </mousebind>
  774. <mousebind button="Down" action="Click">
  775. <action name="GoToDesktop">
  776. <to>next</to>
  777. </action>
  778. </mousebind>
  779. <mousebind button="A-Up" action="Click">
  780. <action name="GoToDesktop">
  781. <to>previous</to>
  782. </action>
  783. </mousebind>
  784. <mousebind button="A-Down" action="Click">
  785. <action name="GoToDesktop">
  786. <to>next</to>
  787. </action>
  788. </mousebind>
  789. </context>
  790. </mouse>
  791. <menu>
  792. <!-- You can specify more than one menu file in here and they are all loaded,
  793. just don't make menu ids clash or, well, it'll be kind of pointless -->
  794. <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  795. <file>/usr/share/lubuntu/openbox/menu.xml</file>
  796. <file>menu.xml</file>
  797.  
  798. <hideDelay>200</hideDelay>
  799. <!-- if a press-release lasts longer than this setting (in milliseconds), the
  800. menu is hidden again -->
  801. <middle>no</middle>
  802. <!-- center submenus vertically about the parent entry -->
  803. <submenuShowDelay>100</submenuShowDelay>
  804. <!-- time to delay before showing a submenu after hovering over the parent
  805. entry.
  806. if this is a negative value, then the delay is infinite and the
  807. submenu will not be shown until it is clicked on -->
  808. <submenuHideDelay>400</submenuHideDelay>
  809. <!-- time to delay before hiding a submenu when selecting another
  810. entry in parent menu
  811. if this is a negative value, then the delay is infinite and the
  812. submenu will not be hidden until a different submenu is opened -->
  813. <applicationIcons>yes</applicationIcons>
  814. <!-- controls if icons appear in the client-list-(combined-)menu -->
  815. <manageDesktops>yes</manageDesktops>
  816. <!-- show the manage desktops section in the client-list-(combined-)menu -->
  817. <showIcons>yes</showIcons>
  818. <!-- show icons on the menu -->
  819. </menu>
  820. <applications>
  821. <!--
  822. # this is an example with comments through out. use these to make your
  823. # own rules, but without the comments of course.
  824. # you may use one or more of the name/class/role/title/type rules to specify
  825. # windows to match
  826.  
  827. <application name="the window's _OB_APP_NAME property (see obxprop)"
  828. class="the window's _OB_APP_CLASS property (see obxprop)"
  829. role="the window's _OB_APP_ROLE property (see obxprop)"
  830. title="the window's _OB_APP_TITLE property (see obxprop)"
  831. type="the window's _OB_APP_TYPE property (see obxprob)..
  832. (if unspecified, then it is 'dialog' for child windows)">
  833. # you may set only one of name/class/role/title/type, or you may use more
  834. # than one together to restrict your matches.
  835.  
  836. # the name, class, role, and title use simple wildcard matching such as those
  837. # used by a shell. you can use * to match any characters and ? to match
  838. # any single character.
  839.  
  840. # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  841. # or desktop
  842.  
  843. # when multiple rules match a window, they will all be applied, in the
  844. # order that they appear in this list
  845.  
  846.  
  847. # each rule element can be left out or set to 'default' to specify to not
  848. # change that attribute of the window
  849.  
  850. <decor>yes</decor>
  851. # enable or disable window decorations
  852.  
  853. <shade>no</shade>
  854. # make the window shaded when it appears, or not
  855.  
  856. <position force="no">
  857. # the position is only used if both an x and y coordinate are provided
  858. # (and not set to 'default')
  859. # when force is "yes", then the window will be placed here even if it
  860. # says you want it placed elsewhere. this is to override buggy
  861. # applications who refuse to behave
  862. <x>center</x>
  863. # a number like 50, or 'center' to center on screen. use a negative number
  864. # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
  865. # right edge (or bottom).
  866. <y>200</y>
  867. <monitor>1</monitor>
  868. # specifies the monitor in a xinerama setup.
  869. # 1 is the first head, or 'mouse' for wherever the mouse is
  870. </position>
  871.  
  872. <focus>yes</focus>
  873. # if the window should try be given focus when it appears. if this is set
  874. # to yes it doesn't guarantee the window will be given focus. some
  875. # restrictions may apply, but Openbox will try to
  876.  
  877. <desktop>1</desktop>
  878. # 1 is the first desktop, 'all' for all desktops
  879.  
  880. <layer>normal</layer>
  881. # 'above', 'normal', or 'below'
  882.  
  883. <iconic>no</iconic>
  884. # make the window iconified when it appears, or not
  885.  
  886. <skip_pager>no</skip_pager>
  887. # asks to not be shown in pagers
  888.  
  889. <skip_taskbar>no</skip_taskbar>
  890. # asks to not be shown in taskbars. window cycling actions will also
  891. # skip past such windows
  892.  
  893. <fullscreen>yes</fullscreen>
  894. # make the window in fullscreen mode when it appears
  895.  
  896. <maximized>true</maximized>
  897. # 'Horizontal', 'Vertical' or boolean (yes/no)
  898. </application>
  899.  
  900. # end of the example
  901. -->
  902. <!-- Option to maximize all normal window when launched-->
  903. <!--
  904. <application type="normal">
  905. <maximized>true</maximized>
  906. </application>
  907. -->
  908.  
  909. </applications>
  910. </openbox_config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement