Advertisement
Guest User

lubuntu-rc.xml test1

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