Advertisement
Guest User

Untitled

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