Advertisement
datstartup

rc.xml

Nov 16th, 2015
1,284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.24 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>Primary</monitor>
  34. <!-- with Smart placement on a multi-monitor system, try to place new windows
  35. on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
  36. the active window is, 'Primary' - only on the primary monitor -->
  37. <primaryMonitor>1</primaryMonitor>
  38. <!-- The monitor where Openbox should place popup dialogs such as the
  39. focus cycling popup, or the desktop switch popup. It can be an index
  40. from 1, specifying a particular monitor. Or it can be one of the
  41. following: 'Mouse' - where the mouse is, or
  42. 'Active' - where the active window is -->
  43. </placement>
  44. <theme>
  45. <name>Numix</name>
  46. <titleLayout>NLIMC</titleLayout>
  47. <!--
  48. available characters are NDSLIMC, each can occur at most once.
  49. N: window icon
  50. L: window label (AKA title).
  51. I: iconify
  52. M: maximize
  53. C: close
  54. S: shade (roll up/down)
  55. D: omnipresent (on all desktops).
  56. -->
  57. <keepBorder>yes</keepBorder>
  58. <animateIconify>yes</animateIconify>
  59. <font place="ActiveWindow">
  60. <name>Sans</name>
  61. <size>9</size>
  62. <!-- font size in points -->
  63. <weight>Bold</weight>
  64. <!-- 'bold' or 'normal' -->
  65. <slant>Normal</slant>
  66. <!-- 'italic' or 'normal' -->
  67. </font>
  68. <font place="InactiveWindow">
  69. <name>Sans</name>
  70. <size>8</size>
  71. <!-- font size in points -->
  72. <weight>Bold</weight>
  73. <!-- 'bold' or 'normal' -->
  74. <slant>Normal</slant>
  75. <!-- 'italic' or 'normal' -->
  76. </font>
  77. <font place="MenuHeader">
  78. <name>Sans</name>
  79. <size>12</size>
  80. <!-- font size in points -->
  81. <weight>Normal</weight>
  82. <!-- 'bold' or 'normal' -->
  83. <slant>Normal</slant>
  84. <!-- 'italic' or 'normal' -->
  85. </font>
  86. <font place="MenuItem">
  87. <name>Sans</name>
  88. <size>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>sans</name>
  97. <size>9</size>
  98. <!-- font size in points -->
  99. <weight>bold</weight>
  100. <!-- 'bold' or 'normal' -->
  101. <slant>normal</slant>
  102. <!-- 'italic' or 'normal' -->
  103. </font>
  104. <font place="InactiveOnScreenDisplay">
  105. <name>sans</name>
  106. <size>9</size>
  107. <!-- font size in points -->
  108. <weight>bold</weight>
  109. <!-- 'bold' or 'normal' -->
  110. <slant>normal</slant>
  111. <!-- 'italic' or 'normal' -->
  112. </font>
  113. </theme>
  114. <desktops>
  115. <!-- this stuff is only used at startup, pagers allow you to change them
  116. during a session
  117.  
  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>4</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 gnome-screenshot when Alt+Print are pressed -->
  268. <keybind key="A-Print">
  269. <action name="Execute">
  270. <command>gnome-screenshot -w</command>
  271. </action>
  272. </keybind>
  273. <!-- Keybindings for window switching -->
  274. <keybind key="A-Tab">
  275. <action name="NextWindow">
  276. <finalactions>
  277. <action name="Focus"/>
  278. <action name="Raise"/>
  279. <action name="Unshade"/>
  280. </finalactions>
  281. </action>
  282. </keybind>
  283. <keybind key="A-S-Tab">
  284. <action name="PreviousWindow">
  285. <finalactions>
  286. <action name="Focus"/>
  287. <action name="Raise"/>
  288. <action name="Unshade"/>
  289. </finalactions>
  290. </action>
  291. </keybind>
  292. <keybind key="C-A-Tab">
  293. <action name="NextWindow">
  294. <panels>yes</panels>
  295. <desktop>yes</desktop>
  296. <finalactions>
  297. <action name="Focus"/>
  298. <action name="Raise"/>
  299. <action name="Unshade"/>
  300. </finalactions>
  301. </action>
  302. </keybind>
  303. <!-- Keybindings for window switching with the arrow keys -->
  304. <keybind key="W-S-Right">
  305. <action name="DirectionalCycleWindows">
  306. <direction>right</direction>
  307. </action>
  308. </keybind>
  309. <keybind key="W-S-Left">
  310. <action name="DirectionalCycleWindows">
  311. <direction>left</direction>
  312. </action>
  313. </keybind>
  314. <keybind key="W-S-Up">
  315. <action name="DirectionalCycleWindows">
  316. <direction>up</direction>
  317. </action>
  318. </keybind>
  319. <keybind key="W-S-Down">
  320. <action name="DirectionalCycleWindows">
  321. <direction>down</direction>
  322. </action>
  323. </keybind>
  324. <!-- Keybindings for running applications -->
  325. <keybind key="W-e">
  326. <action name="Execute">
  327. <startupnotify>
  328. <enabled>true</enabled>
  329. <name>Editor</name>
  330. </startupnotify>
  331. <command>geany</command>
  332. </action>
  333. </keybind>
  334. <keybind key="C-space">
  335. <action name="ShowMenu">
  336. <menu>root-menu</menu>
  337. </action>
  338. </keybind>
  339. <keybind key="W-Tab">
  340. <action name="Execute">
  341. <startupnotify>
  342. <enabled>true</enabled>
  343. <name>Goldendict</name>
  344. </startupnotify>
  345. <command>goldendict</command>
  346. </action>
  347. </keybind>
  348. <keybind key="W-F6">
  349. <action name="Execute">
  350. <startupnotify>
  351. <enabled>true</enabled>
  352. <name>brightnessup</name>
  353. </startupnotify>
  354. <command>/home/dat/Scripts/brightness-up.sh</command>
  355. </action>
  356. </keybind>
  357. <keybind key="W-F5">
  358. <action name="Execute">
  359. <startupnotify>
  360. <enabled>true</enabled>
  361. <name>bightnessdown</name>
  362. </startupnotify>
  363. <command>/home/dat/Scripts/brightness-down.sh</command>
  364. </action>
  365. </keybind>
  366. <keybind key="W-F9">
  367. <action name="Execute">
  368. <startupnotify>
  369. <enabled>true</enabled>
  370. <name>touchpadtoggle</name>
  371. </startupnotify>
  372. <command>/home/dat/Scripts/touchpad_toggle.sh</command>
  373. </action>
  374. </keybind>
  375. <keybind key="W-l">
  376. <action name="Execute">
  377. <startupnotify>
  378. <enabled>true</enabled>
  379. <name>lock</name>
  380. </startupnotify>
  381. <command>light-locker-command -l</command>
  382. </action>
  383. </keybind>
  384. <keybind key="W-o">
  385. <action name="Execute">
  386. <startupnotify>
  387. <enabled>true</enabled>
  388. <name>libreoffice</name>
  389. </startupnotify>
  390. <command>libreoffice</command>
  391. </action>
  392. </keybind>
  393. <keybind key="W-v">
  394. <action name="Execute">
  395. <startupnotify>
  396. <enabled>true</enabled>
  397. <name>virtualbox</name>
  398. </startupnotify>
  399. <command>virtualbox</command>
  400. </action>
  401. </keybind>
  402. <keybind key="W-f">
  403. <action name="Execute">
  404. <startupnotify>
  405. <enabled>true</enabled>
  406. <name>thunar</name>
  407. </startupnotify>
  408. <command>thunar</command>
  409. </action>
  410. </keybind>
  411. <keybind key="W-r">
  412. <action name="Execute">
  413. <startupnotify>
  414. <enabled>true</enabled>
  415. <name>gmrun</name>
  416. </startupnotify>
  417. <command>gmrun</command>
  418. </action>
  419. </keybind>
  420. <keybind key="W-t">
  421. <action name="Execute">
  422. <startupnotify>
  423. <enabled>true</enabled>
  424. <name>Terminal</name>
  425. </startupnotify>
  426. <command>terminator</command>
  427. </action>
  428. </keybind>
  429. <keybind key="W-w">
  430. <action name="Execute">
  431. <startupnotify>
  432. <enabled>true</enabled>
  433. <name>Web Browser</name>
  434. </startupnotify>
  435. <command>x-www-browser</command>
  436. </action>
  437. </keybind>
  438. <keybind key="C-A-Delete">
  439. <action name="Execute">
  440. <startupnotify>
  441. <enabled>true</enabled>
  442. <name>htop</name>
  443. </startupnotify>
  444. <command>terminator -e htop</command>
  445. </action>
  446. </keybind>
  447. <keybind key="W-m">
  448. <action name="Execute">
  449. <startupnotify>
  450. <enabled>true</enabled>
  451. <name>MousePowerSaver</name>
  452. </startupnotify>
  453. <command>echo 'on' &gt; /sys/bus/usb/devices/1-1.2/power/control</command>
  454. </action>
  455. </keybind>
  456. <!-- Launch gnome-screenshot when Print is pressed -->
  457. <keybind key="Print">
  458. <action name="Execute">
  459. <command>scrot -cd1</command>
  460. </action>
  461. </keybind>
  462. </keyboard>
  463. <mouse>
  464. <dragThreshold>1</dragThreshold>
  465. <!-- number of pixels the mouse must move before a drag begins -->
  466. <doubleClickTime>500</doubleClickTime>
  467. <!-- in milliseconds (1000 = 1 second) -->
  468. <screenEdgeWarpTime>400</screenEdgeWarpTime>
  469. <!-- Time before changing desktops when the pointer touches the edge of the
  470. screen while moving a window, in milliseconds (1000 = 1 second).
  471. Set this to 0 to disable warping -->
  472. <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  473. <!-- Set this to TRUE to move the mouse pointer across the desktop when
  474. switching due to hitting the edge of the screen -->
  475. <context name="Frame">
  476. <mousebind button="A-Left" action="Press">
  477. <action name="Focus"/>
  478. <action name="Raise"/>
  479. </mousebind>
  480. <mousebind button="A-Left" action="Click">
  481. <action name="Unshade"/>
  482. </mousebind>
  483. <mousebind button="A-Left" action="Drag">
  484. <action name="Move"/>
  485. </mousebind>
  486. <mousebind button="A-Right" action="Press">
  487. <action name="Focus"/>
  488. <action name="Raise"/>
  489. <action name="Unshade"/>
  490. </mousebind>
  491. <mousebind button="A-Right" action="Drag">
  492. <action name="Resize"/>
  493. </mousebind>
  494. <mousebind button="A-Middle" action="Press">
  495. <action name="Lower"/>
  496. <action name="FocusToBottom"/>
  497. <action name="Unfocus"/>
  498. </mousebind>
  499. <mousebind button="A-Up" action="Click">
  500. <action name="GoToDesktop">
  501. <to>previous</to>
  502. </action>
  503. </mousebind>
  504. <mousebind button="A-Down" action="Click">
  505. <action name="GoToDesktop">
  506. <to>next</to>
  507. </action>
  508. </mousebind>
  509. <mousebind button="C-A-Up" action="Click">
  510. <action name="GoToDesktop">
  511. <to>previous</to>
  512. </action>
  513. </mousebind>
  514. <mousebind button="C-A-Down" action="Click">
  515. <action name="GoToDesktop">
  516. <to>next</to>
  517. </action>
  518. </mousebind>
  519. <mousebind button="A-S-Up" action="Click">
  520. <action name="SendToDesktop">
  521. <to>previous</to>
  522. </action>
  523. </mousebind>
  524. <mousebind button="A-S-Down" action="Click">
  525. <action name="SendToDesktop">
  526. <to>next</to>
  527. </action>
  528. </mousebind>
  529. </context>
  530. <context name="Titlebar">
  531. <mousebind button="Left" action="Drag">
  532. <action name="Move"/>
  533. </mousebind>
  534. <mousebind button="Left" action="DoubleClick">
  535. <action name="ToggleMaximize"/>
  536. </mousebind>
  537. <mousebind button="Up" action="Click">
  538. <action name="if">
  539. <shaded>no</shaded>
  540. <then>
  541. <action name="Shade"/>
  542. <action name="FocusToBottom"/>
  543. <action name="Unfocus"/>
  544. <action name="Lower"/>
  545. </then>
  546. </action>
  547. </mousebind>
  548. <mousebind button="Down" action="Click">
  549. <action name="if">
  550. <shaded>yes</shaded>
  551. <then>
  552. <action name="Unshade"/>
  553. <action name="Raise"/>
  554. </then>
  555. </action>
  556. </mousebind>
  557. </context>
  558. <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  559. <mousebind button="Left" action="Press">
  560. <action name="Focus"/>
  561. <action name="Raise"/>
  562. <action name="Unshade"/>
  563. </mousebind>
  564. <mousebind button="Middle" action="Press">
  565. <action name="Lower"/>
  566. <action name="FocusToBottom"/>
  567. <action name="Unfocus"/>
  568. </mousebind>
  569. <mousebind button="Right" action="Press">
  570. <action name="Focus"/>
  571. <action name="Raise"/>
  572. <action name="ShowMenu">
  573. <menu>client-menu</menu>
  574. </action>
  575. </mousebind>
  576. </context>
  577. <context name="Top">
  578. <mousebind button="Left" action="Drag">
  579. <action name="Resize">
  580. <edge>top</edge>
  581. </action>
  582. </mousebind>
  583. </context>
  584. <context name="Left">
  585. <mousebind button="Left" action="Drag">
  586. <action name="Resize">
  587. <edge>left</edge>
  588. </action>
  589. </mousebind>
  590. </context>
  591. <context name="Right">
  592. <mousebind button="Left" action="Drag">
  593. <action name="Resize">
  594. <edge>right</edge>
  595. </action>
  596. </mousebind>
  597. </context>
  598. <context name="Bottom">
  599. <mousebind button="Left" action="Drag">
  600. <action name="Resize">
  601. <edge>bottom</edge>
  602. </action>
  603. </mousebind>
  604. <mousebind button="Right" action="Press">
  605. <action name="Focus"/>
  606. <action name="Raise"/>
  607. <action name="ShowMenu">
  608. <menu>client-menu</menu>
  609. </action>
  610. </mousebind>
  611. </context>
  612. <context name="TRCorner BRCorner TLCorner BLCorner">
  613. <mousebind button="Left" action="Press">
  614. <action name="Focus"/>
  615. <action name="Raise"/>
  616. <action name="Unshade"/>
  617. </mousebind>
  618. <mousebind button="Left" action="Drag">
  619. <action name="Resize"/>
  620. </mousebind>
  621. </context>
  622. <context name="Client">
  623. <mousebind button="Left" action="Press">
  624. <action name="Focus"/>
  625. <action name="Raise"/>
  626. </mousebind>
  627. <mousebind button="Middle" action="Press">
  628. <action name="Focus"/>
  629. <action name="Raise"/>
  630. </mousebind>
  631. <mousebind button="Right" action="Press">
  632. <action name="Focus"/>
  633. <action name="Raise"/>
  634. </mousebind>
  635. </context>
  636. <context name="Icon">
  637. <mousebind button="Left" action="Press">
  638. <action name="Focus"/>
  639. <action name="Raise"/>
  640. <action name="Unshade"/>
  641. <action name="ShowMenu">
  642. <menu>client-menu</menu>
  643. </action>
  644. </mousebind>
  645. <mousebind button="Right" action="Press">
  646. <action name="Focus"/>
  647. <action name="Raise"/>
  648. <action name="ShowMenu">
  649. <menu>client-menu</menu>
  650. </action>
  651. </mousebind>
  652. </context>
  653. <context name="AllDesktops">
  654. <mousebind button="Left" action="Press">
  655. <action name="Focus"/>
  656. <action name="Raise"/>
  657. <action name="Unshade"/>
  658. </mousebind>
  659. <mousebind button="Left" action="Click">
  660. <action name="ToggleOmnipresent"/>
  661. </mousebind>
  662. </context>
  663. <context name="Shade">
  664. <mousebind button="Left" action="Press">
  665. <action name="Focus"/>
  666. <action name="Raise"/>
  667. </mousebind>
  668. <mousebind button="Left" action="Click">
  669. <action name="ToggleShade"/>
  670. </mousebind>
  671. </context>
  672. <context name="Iconify">
  673. <mousebind button="Left" action="Press">
  674. <action name="Focus"/>
  675. <action name="Raise"/>
  676. </mousebind>
  677. <mousebind button="Left" action="Click">
  678. <action name="Iconify"/>
  679. </mousebind>
  680. </context>
  681. <context name="Maximize">
  682. <mousebind button="Left" action="Press">
  683. <action name="Focus"/>
  684. <action name="Raise"/>
  685. <action name="Unshade"/>
  686. </mousebind>
  687. <mousebind button="Middle" action="Press">
  688. <action name="Focus"/>
  689. <action name="Raise"/>
  690. <action name="Unshade"/>
  691. </mousebind>
  692. <mousebind button="Right" action="Press">
  693. <action name="Focus"/>
  694. <action name="Raise"/>
  695. <action name="Unshade"/>
  696. </mousebind>
  697. <mousebind button="Left" action="Click">
  698. <action name="ToggleMaximize"/>
  699. </mousebind>
  700. <mousebind button="Middle" action="Click">
  701. <action name="ToggleMaximize">
  702. <direction>vertical</direction>
  703. </action>
  704. </mousebind>
  705. <mousebind button="Right" action="Click">
  706. <action name="ToggleMaximize">
  707. <direction>horizontal</direction>
  708. </action>
  709. </mousebind>
  710. </context>
  711. <context name="Close">
  712. <mousebind button="Left" action="Press">
  713. <action name="Focus"/>
  714. <action name="Raise"/>
  715. <action name="Unshade"/>
  716. </mousebind>
  717. <mousebind button="Left" action="Click">
  718. <action name="Close"/>
  719. </mousebind>
  720. </context>
  721. <context name="Desktop">
  722. <mousebind button="Up" action="Click">
  723. <action name="GoToDesktop">
  724. <to>previous</to>
  725. </action>
  726. </mousebind>
  727. <mousebind button="Down" action="Click">
  728. <action name="GoToDesktop">
  729. <to>next</to>
  730. </action>
  731. </mousebind>
  732. <mousebind button="A-Up" action="Click">
  733. <action name="GoToDesktop">
  734. <to>previous</to>
  735. </action>
  736. </mousebind>
  737. <mousebind button="A-Down" action="Click">
  738. <action name="GoToDesktop">
  739. <to>next</to>
  740. </action>
  741. </mousebind>
  742. <mousebind button="C-A-Up" action="Click">
  743. <action name="GoToDesktop">
  744. <to>previous</to>
  745. </action>
  746. </mousebind>
  747. <mousebind button="C-A-Down" action="Click">
  748. <action name="GoToDesktop">
  749. <to>next</to>
  750. </action>
  751. </mousebind>
  752. <mousebind button="Left" action="Press">
  753. <action name="Focus"/>
  754. <action name="Raise"/>
  755. </mousebind>
  756. <mousebind button="Right" action="Press">
  757. <action name="Focus"/>
  758. <action name="Raise"/>
  759. </mousebind>
  760. </context>
  761. <context name="Root">
  762. <!-- Menus -->
  763. <mousebind button="Middle" action="Press">
  764. <action name="ShowMenu">
  765. <menu>client-list-combined-menu</menu>
  766. </action>
  767. </mousebind>
  768. <mousebind button="Right" action="Press">
  769. <action name="ShowMenu">
  770. <menu>root-menu</menu>
  771. </action>
  772. </mousebind>
  773. </context>
  774. <context name="MoveResize">
  775. <mousebind button="Up" action="Click">
  776. <action name="GoToDesktop">
  777. <to>previous</to>
  778. </action>
  779. </mousebind>
  780. <mousebind button="Down" action="Click">
  781. <action name="GoToDesktop">
  782. <to>next</to>
  783. </action>
  784. </mousebind>
  785. <mousebind button="A-Up" action="Click">
  786. <action name="GoToDesktop">
  787. <to>previous</to>
  788. </action>
  789. </mousebind>
  790. <mousebind button="A-Down" action="Click">
  791. <action name="GoToDesktop">
  792. <to>next</to>
  793. </action>
  794. </mousebind>
  795. </context>
  796. </mouse>
  797. <menu>
  798. <!-- You can specify more than one menu file in here and they are all loaded,
  799. just don't make menu ids clash or, well, it'll be kind of pointless -->
  800. <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  801. <!-- system menu files on Debian systems -->
  802. <file>/var/lib/openbox/debian-menu.xml</file>
  803. <file>menu.xml</file>
  804. <hideDelay>200</hideDelay>
  805. <!-- if a press-release lasts longer than this setting (in milliseconds), the
  806. menu is hidden again -->
  807. <middle>no</middle>
  808. <!-- center submenus vertically about the parent entry -->
  809. <submenuShowDelay>100</submenuShowDelay>
  810. <!-- time to delay before showing a submenu after hovering over the parent
  811. entry.
  812. if this is a negative value, then the delay is infinite and the
  813. submenu will not be shown until it is clicked on -->
  814. <submenuHideDelay>400</submenuHideDelay>
  815. <!-- time to delay before hiding a submenu when selecting another
  816. entry in parent menu
  817. if this is a negative value, then the delay is infinite and the
  818. submenu will not be hidden until a different submenu is opened -->
  819. <showIcons>yes</showIcons>
  820. <!-- controls if icons appear in the client-list-(combined-)menu -->
  821. <manageDesktops>yes</manageDesktops>
  822. <!-- show the manage desktops section in the client-list-(combined-)menu -->
  823. </menu>
  824. <applications><!--
  825. # this is an example with comments through out. use these to make your
  826. # own rules, but without the comments of course.
  827. # you may use one or more of the name/class/role/title/type rules to specify
  828. # windows to match
  829.  
  830. <application name="the window's _OB_APP_NAME property (see obxprop)"
  831. class="the window's _OB_APP_CLASS property (see obxprop)"
  832. groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
  833. groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
  834. role="the window's _OB_APP_ROLE property (see obxprop)"
  835. title="the window's _OB_APP_TITLE property (see obxprop)"
  836. type="the window's _OB_APP_TYPE property (see obxprob)..
  837. (if unspecified, then it is 'dialog' for child windows)">
  838. # you may set only one of name/class/role/title/type, or you may use more
  839. # than one together to restrict your matches.
  840.  
  841. # the name, class, role, and title use simple wildcard matching such as those
  842. # used by a shell. you can use * to match any characters and ? to match
  843. # any single character.
  844.  
  845. # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  846. # or desktop
  847.  
  848. # when multiple rules match a window, they will all be applied, in the
  849. # order that they appear in this list
  850.  
  851.  
  852. # each rule element can be left out or set to 'default' to specify to not
  853. # change that attribute of the window
  854.  
  855. <decor>yes</decor>
  856. # enable or disable window decorations
  857.  
  858. <shade>no</shade>
  859. # make the window shaded when it appears, or not
  860.  
  861. <position force="no">
  862. # the position is only used if both an x and y coordinate are provided
  863. # (and not set to 'default')
  864. # when force is "yes", then the window will be placed here even if it
  865. # says you want it placed elsewhere. this is to override buggy
  866. # applications who refuse to behave
  867. <x>center</x>
  868. # a number like 50, or 'center' to center on screen. use a negative number
  869. # to start from the right (or bottom for <y>), ie -50 is 50 pixels from
  870. # the right edge (or bottom). use 'default' to specify using value
  871. # provided by the application, or chosen by openbox, instead.
  872. <y>200</y>
  873. <monitor>1</monitor>
  874. # specifies the monitor in a xinerama setup.
  875. # 1 is the first head, or 'mouse' for wherever the mouse is
  876. </position>
  877.  
  878. <size>
  879. # the size to make the window.
  880. <width>20</width>
  881. # a number like 20, or 'default' to use the size given by the application.
  882. # you can use fractions such as 1/2 or percentages such as 75% in which
  883. # case the value is relative to the size of the monitor that the window
  884. # appears on.
  885. <height>30%</height>
  886. </size>
  887.  
  888. <focus>yes</focus>
  889. # if the window should try be given focus when it appears. if this is set
  890. # to yes it doesn't guarantee the window will be given focus. some
  891. # restrictions may apply, but Openbox will try to
  892.  
  893. <desktop>1</desktop>
  894. # 1 is the first desktop, 'all' for all desktops
  895.  
  896. <layer>normal</layer>
  897. # 'above', 'normal', or 'below'
  898.  
  899. <iconic>no</iconic>
  900. # make the window iconified when it appears, or not
  901.  
  902. <skip_pager>no</skip_pager>
  903. # asks to not be shown in pagers
  904.  
  905. <skip_taskbar>no</skip_taskbar>
  906. # asks to not be shown in taskbars. window cycling actions will also
  907. # skip past such windows
  908.  
  909. <fullscreen>yes</fullscreen>
  910. # make the window in fullscreen mode when it appears
  911.  
  912. <maximized>true</maximized>
  913. # 'Horizontal', 'Vertical' or boolean (yes/no)
  914. </application>
  915.  
  916. # end of the example
  917. --><application name="icedove"><desktop>2</desktop><layer>normal</layer><decor>no</decor><maximized>yes</maximized></application>
  918. ###
  919. </applications>
  920. <applications>
  921. <!-- Match all windows and remove their decorations -->
  922. <application class="XXXFirefox">
  923. <decor>no</decor>
  924. </application>
  925. <!-- Give back decorations to some app windows -->
  926. <application name="Foxit Reader">
  927. <decor>yes</decor>
  928. </application>
  929. <application name="gcolor2">
  930. <decor>yes</decor>
  931. </application>
  932. </applications>
  933. </openbox_config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement