Advertisement
Dobbie03

rc

Mar 5th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.27 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>Classic Bang Dark Blue High</name>
  44. <titleLayout>DLIMC</titleLayout>
  45. <!--
  46. available 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>SFNS Display</name>
  59. <size>9</size>
  60. <!-- font size in points -->
  61. <weight>Normal</weight>
  62. <!-- 'bold' or 'normal' -->
  63. <roundCorners>yes</roundCorners>
  64. <invisibleHandles>yes</invisibleHandles>
  65. <slant>Normal</slant>
  66. <!-- 'italic' or 'normal' -->
  67. </font>
  68. <font place="InactiveWindow">
  69. <name>SFNS Display</name>
  70. <size>9</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>Coda Ultra-Bold</name>
  79. <size>10</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>Coda</name>
  88. <size>9</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>SFNS Display</name>
  97. <size>9</size>
  98. <!-- font size in points -->
  99. <weight>Normal</weight>
  100. <!-- 'bold' or 'normal' -->
  101. <slant>Normal</slant>
  102. <!-- 'italic' or 'normal' -->
  103. </font>
  104. <font place="InactiveOnScreenDisplay">
  105. <name>SFNS Display</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. <name>One</name>
  127. <name>Two</name>
  128. <name>Three</name>
  129. <name>Four</name>
  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' or 'Top' -->
  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>1</bottom>
  158. <left>0</left>
  159. <right>0</right>
  160. </margins>
  161. <dock>
  162. <position>Bottom</position>
  163. <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  164. <floatingX>0</floatingX>
  165. <floatingY>0</floatingY>
  166. <noStrut>yes</noStrut>
  167. <stacking>Normal</stacking>
  168. <!-- 'Above', 'Normal', or 'Below' -->
  169. <direction>Horizontal</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. <keybind key="W-b">
  254. <action name="ToggleDecorations"/>
  255. </keybind>
  256. <!-- Keybindings for windows -->
  257. <keybind key="A-F4">
  258. <action name="Close"/>
  259. </keybind>
  260. <keybind key="A-F5">
  261. <action name="Iconify"/>
  262. </keybind>
  263. <keybind key="A-F6">
  264. <action name="ToggleMaximize"/>
  265. </keybind>
  266. <keybind key="A-Escape">
  267. <action name="Lower"/>
  268. <action name="FocusToBottom"/>
  269. <action name="Unfocus"/>
  270. </keybind>
  271. <keybind key="A-space">
  272. <action name="ShowMenu">
  273. <menu>client-menu</menu>
  274. </action>
  275. </keybind>
  276. <keybind key="Print">
  277. <action name="Execute">
  278. <command>xfce4-screenshooter</command>
  279. </action>
  280. </keybind>
  281. <keybind key="A-Print">
  282. <action name="Execute">
  283. <command>scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Screenshots/ ; mirage ~/Screenshots/$f'</command>
  284. </action>
  285. </keybind>
  286. <!-- Keybindings for window switching -->
  287. <keybind key="A-Tab">
  288. <action name="NextWindow">
  289. <finalactions>
  290. <action name="Focus"/>
  291. <action name="Raise"/>
  292. <action name="Unshade"/>
  293. </finalactions>
  294. </action>
  295. </keybind>
  296. <keybind key="A-S-Tab">
  297. <action name="PreviousWindow">
  298. <finalactions>
  299. <action name="Focus"/>
  300. <action name="Raise"/>
  301. <action name="Unshade"/>
  302. </finalactions>
  303. </action>
  304. </keybind>
  305. <keybind key="C-A-Tab">
  306. <action name="NextWindow">
  307. <panels>yes</panels>
  308. <desktop>yes</desktop>
  309. <finalactions>
  310. <action name="Focus"/>
  311. <action name="Raise"/>
  312. <action name="Unshade"/>
  313. </finalactions>
  314. </action>
  315. </keybind>
  316. <!-- Keybindings for window switching with the arrow keys -->
  317. <keybind key="W-S-Right">
  318. <action name="DirectionalCycleWindows">
  319. <direction>right</direction>
  320. </action>
  321. </keybind>
  322. <keybind key="W-S-Left">
  323. <action name="DirectionalCycleWindows">
  324. <direction>left</direction>
  325. </action>
  326. </keybind>
  327. <keybind key="W-S-Up">
  328. <action name="DirectionalCycleWindows">
  329. <direction>up</direction>
  330. </action>
  331. </keybind>
  332. <keybind key="W-S-Down">
  333. <action name="DirectionalCycleWindows">
  334. <direction>down</direction>
  335. </action>
  336. </keybind>
  337. <!-- Keybindings for running applications -->
  338. <keybind key="A-F2">
  339. <action name="Execute">
  340. <startupnotify>
  341. <enabled>true</enabled>
  342. <name>Run Program</name>
  343. </startupnotify>
  344. <command>drun</command>
  345. </action>
  346. </keybind>
  347. <keybind key="A-F3">
  348. <action name="Execute">
  349. <startupnotify>
  350. <enabled>false</enabled>
  351. <name>dmenu-bind</name>
  352. </startupnotify>
  353. <command>~/.config/dmenu/dmenu-binds.sh</command>
  354. </action>
  355. </keybind>
  356. <keybind key="W-f">
  357. <action name="Execute">
  358. <startupnotify>
  359. <enabled>false</enabled>
  360. <name>File Manager</name>
  361. </startupnotify>
  362. <command>thunar</command>
  363. </action>
  364. </keybind>
  365. <keybind key="W-t">
  366. <action name="Execute">
  367. <startupnotify>
  368. <enabled>false</enabled>
  369. <name>Terminal</name>
  370. </startupnotify>
  371. <command>urxvt</command>
  372. </action>
  373. </keybind>
  374. <keybind key="W-w">
  375. <action name="Execute">
  376. <startupnotify>
  377. <enabled>true</enabled>
  378. <name>Web Browser</name>
  379. </startupnotify>
  380. <command>chromium</command>
  381. </action>
  382. </keybind>
  383. <keybind key="W-l">
  384. <action name="Execute">
  385. <startupnotify>
  386. <enabled>false</enabled>
  387. <name>Lock screen</name>
  388. </startupnotify>
  389. <command>slimlock</command>
  390. </action>
  391. </keybind>
  392. <keybind key="W-e">
  393. <action name="Execute">
  394. <startupnotify>
  395. <enabled>false</enabled>
  396. <name>Editor</name>
  397. </startupnotify>
  398. <command>geany</command>
  399. </action>
  400. </keybind>
  401. <keybind key="W-m">
  402. <action name="Execute">
  403. <startupnotify>
  404. <enabled>false</enabled>
  405. <name>Mediaplayer</name>
  406. </startupnotify>
  407. <command>audacious</command>
  408. </action>
  409. </keybind>
  410. <keybind key="W-h">
  411. <action name="Execute">
  412. <startupnotify>
  413. <enabled>false</enabled>
  414. <name>htop</name>
  415. </startupnotify>
  416. <command>urxvt -T 'htop task manager' -e htop</command>
  417. </action>
  418. </keybind>
  419. <keybind key="W-v">
  420. <action name="Execute">
  421. <startupnotify>
  422. <enabled>true</enabled>
  423. <name>Volume</name>
  424. </startupnotify>
  425. <command>pavucontrol</command>
  426. </action>
  427. </keybind>
  428. <keybind key="XF86AudioMute">
  429. <action name="Execute">
  430. <command>amixer -D pulse set Master toggle</command>
  431. </action>
  432. </keybind>
  433. <keybind key="XF86AudioStop">
  434. <action name="Execute">
  435. <startupnotify>
  436. <enabled>false</enabled>
  437. <name>Pause</name>
  438. </startupnotify>
  439. <command>playerctl pause</command>
  440. </action>
  441. </keybind>
  442. <keybind key="XF86AudioPlay">
  443. <action name="Execute">
  444. <startupnotify>
  445. <enabled>false</enabled>
  446. <name>Play</name>
  447. </startupnotify>
  448. <command>playerctl play</command>
  449. </action>
  450. </keybind>
  451. <!-- Keybindings for menus -->
  452. <keybind key="W-Tab">
  453. <action name="ShowMenu">
  454. <menu>client-list-combined-menu</menu>
  455. </action>
  456. </keybind>
  457. <keybind key="W-space">
  458. <action name="ShowMenu">
  459. <menu>root-menu</menu>
  460. </action>
  461. </keybind>
  462. <keybind key="A-C-q">
  463. <action name="ShowMenu">
  464. <menu>root-menu</menu>
  465. </action>
  466. </keybind>
  467. <!-- A bit of tiling -->
  468. <keybind key="W-Right">
  469. <action name="GrowToEdgeEast"/>
  470. </keybind>
  471. <keybind key="W-Left">
  472. <action name="GrowToEdgeWest"/>
  473. </keybind>
  474. <keybind key="W-Down">
  475. <action name="GrowToEdgeSouth"/>
  476. </keybind>
  477. <keybind key="W-Up">
  478. <action name="GrowToEdgeNorth"/>
  479. </keybind>
  480. <keybind key="W-A-Left">
  481. <action name="UnmaximizeFull"/>
  482. <action name="MaximizeVert"/>
  483. <action name="MoveResizeTo">
  484. <width>50%</width>
  485. <x>0</x>
  486. <y>0</y>
  487. </action>
  488. </keybind>
  489. <keybind key="W-A-Right">
  490. <action name="UnmaximizeFull"/>
  491. <action name="MaximizeVert"/>
  492. <action name="MoveResizeTo">
  493. <width>50%</width>
  494. <x>-0</x>
  495. <y>0</y>
  496. </action>
  497. </keybind>
  498. <keybind key="A-r">
  499. <action name="Resize"/>
  500. </keybind>
  501. <keybind key="A-m">
  502. <action name="Move"/>
  503. </keybind>
  504. </keyboard>
  505. <mouse>
  506. <dragThreshold>8</dragThreshold>
  507. <!-- number of pixels the mouse must move before a drag begins -->
  508. <doubleClickTime>200</doubleClickTime>
  509. <!-- in milliseconds (1000 = 1 second) -->
  510. <screenEdgeWarpTime>400</screenEdgeWarpTime>
  511. <!-- Time before changing desktops when the pointer touches the edge of the
  512. screen while moving a window, in milliseconds (1000 = 1 second).
  513. Set this to 0 to disable warping -->
  514. <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  515. <!-- Set this to TRUE to move the mouse pointer across the desktop when
  516. switching due to hitting the edge of the screen -->
  517. <context name="Frame">
  518. <mousebind button="A-Left" action="Press">
  519. <action name="Focus"/>
  520. <action name="Raise"/>
  521. </mousebind>
  522. <mousebind button="A-Left" action="Click">
  523. <action name="Unshade"/>
  524. </mousebind>
  525. <mousebind button="A-Left" action="Drag">
  526. <action name="Move"/>
  527. </mousebind>
  528. <mousebind button="A-Right" action="Press">
  529. <action name="Focus"/>
  530. <action name="Raise"/>
  531. <action name="Unshade"/>
  532. </mousebind>
  533. <mousebind button="A-Right" action="Drag">
  534. <action name="Resize"/>
  535. </mousebind>
  536. <mousebind button="A-Middle" action="Press">
  537. <action name="Lower"/>
  538. <action name="FocusToBottom"/>
  539. <action name="Unfocus"/>
  540. </mousebind>
  541. <mousebind button="A-Up" action="Click">
  542. <action name="GoToDesktop">
  543. <to>previous</to>
  544. </action>
  545. </mousebind>
  546. <mousebind button="A-Down" action="Click">
  547. <action name="GoToDesktop">
  548. <to>next</to>
  549. </action>
  550. </mousebind>
  551. <mousebind button="C-A-Up" action="Click">
  552. <action name="GoToDesktop">
  553. <to>previous</to>
  554. </action>
  555. </mousebind>
  556. <mousebind button="C-A-Down" action="Click">
  557. <action name="GoToDesktop">
  558. <to>next</to>
  559. </action>
  560. </mousebind>
  561. <mousebind button="A-S-Up" action="Click">
  562. <action name="SendToDesktop">
  563. <to>previous</to>
  564. </action>
  565. </mousebind>
  566. <mousebind button="A-S-Down" action="Click">
  567. <action name="SendToDesktop">
  568. <to>next</to>
  569. </action>
  570. </mousebind>
  571. </context>
  572. <context name="Titlebar">
  573. <mousebind button="Left" action="Press">
  574. <action name="Focus"/>
  575. <action name="Raise"/>
  576. </mousebind>
  577. <mousebind button="Left" action="Drag">
  578. <action name="Move"/>
  579. </mousebind>
  580. <mousebind button="Left" action="DoubleClick">
  581. <action name="ToggleShade"/>
  582. </mousebind>
  583. <mousebind button="Middle" action="Press">
  584. <action name="Lower"/>
  585. <action name="FocusToBottom"/>
  586. <action name="Unfocus"/>
  587. </mousebind>
  588. <mousebind button="Up" action="Click">
  589. <action name="if">
  590. <shaded>no</shaded>
  591. <then>
  592. <action name="Shade"/>
  593. <action name="FocusToBottom"/>
  594. <action name="Unfocus"/>
  595. <action name="Lower"/>
  596. </then>
  597. </action>
  598. </mousebind>
  599. <mousebind button="Down" action="Click">
  600. <action name="if">
  601. <shaded>yes</shaded>
  602. <then>
  603. <action name="Unshade"/>
  604. <action name="Raise"/>
  605. </then>
  606. </action>
  607. </mousebind>
  608. <mousebind button="Right" action="Press">
  609. <action name="Focus"/>
  610. <action name="Raise"/>
  611. <action name="ShowMenu">
  612. <menu>client-menu</menu>
  613. </action>
  614. </mousebind>
  615. </context>
  616. <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  617. <mousebind button="Left" action="Press">
  618. <action name="Focus"/>
  619. <action name="Raise"/>
  620. <action name="Unshade"/>
  621. </mousebind>
  622. <mousebind button="Middle" action="Press">
  623. <action name="Lower"/>
  624. <action name="FocusToBottom"/>
  625. <action name="Unfocus"/>
  626. </mousebind>
  627. <mousebind button="Right" action="Press">
  628. <action name="Focus"/>
  629. <action name="Raise"/>
  630. <action name="ShowMenu">
  631. <menu>client-menu</menu>
  632. </action>
  633. </mousebind>
  634. </context>
  635. <context name="Top">
  636. <mousebind button="Left" action="Press">
  637. <action name="Focus"/>
  638. <action name="Raise"/>
  639. <action name="Unshade"/>
  640. </mousebind>
  641. <mousebind button="Left" action="Drag">
  642. <action name="Resize">
  643. <edge>top</edge>
  644. </action>
  645. </mousebind>
  646. </context>
  647. <context name="Left">
  648. <mousebind button="Left" action="Press">
  649. <action name="Focus"/>
  650. <action name="Raise"/>
  651. </mousebind>
  652. <mousebind button="Left" action="Drag">
  653. <action name="Resize">
  654. <edge>left</edge>
  655. </action>
  656. </mousebind>
  657. </context>
  658. <context name="Right">
  659. <mousebind button="Left" action="Press">
  660. <action name="Focus"/>
  661. <action name="Raise"/>
  662. </mousebind>
  663. <mousebind button="Left" action="Drag">
  664. <action name="Resize">
  665. <edge>right</edge>
  666. </action>
  667. </mousebind>
  668. </context>
  669. <context name="Bottom">
  670. <mousebind button="Left" action="Press">
  671. <action name="Focus"/>
  672. <action name="Raise"/>
  673. </mousebind>
  674. <mousebind button="Left" action="Drag">
  675. <action name="Resize">
  676. <edge>bottom</edge>
  677. </action>
  678. </mousebind>
  679. <mousebind button="Middle" action="Press">
  680. <action name="Lower"/>
  681. <action name="FocusToBottom"/>
  682. <action name="Unfocus"/>
  683. </mousebind>
  684. <mousebind button="Right" action="Press">
  685. <action name="Focus"/>
  686. <action name="Raise"/>
  687. <action name="ShowMenu">
  688. <menu>client-menu</menu>
  689. </action>
  690. </mousebind>
  691. </context>
  692. <context name="TRCorner BRCorner TLCorner BLCorner">
  693. <mousebind button="Left" action="Press">
  694. <action name="Focus"/>
  695. <action name="Raise"/>
  696. <action name="Unshade"/>
  697. </mousebind>
  698. <mousebind button="Left" action="Drag">
  699. <action name="Resize"/>
  700. </mousebind>
  701. </context>
  702. <context name="Client">
  703. <mousebind button="Left" action="Press">
  704. <action name="Focus"/>
  705. <action name="Raise"/>
  706. </mousebind>
  707. <mousebind button="Middle" action="Press">
  708. <action name="Focus"/>
  709. <action name="Raise"/>
  710. </mousebind>
  711. <mousebind button="Right" action="Press">
  712. <action name="Focus"/>
  713. <action name="Raise"/>
  714. </mousebind>
  715. </context>
  716. <context name="Icon">
  717. <mousebind button="Left" action="Press">
  718. <action name="Focus"/>
  719. <action name="Raise"/>
  720. <action name="Unshade"/>
  721. <action name="ShowMenu">
  722. <menu>client-menu</menu>
  723. </action>
  724. </mousebind>
  725. <mousebind button="Right" action="Press">
  726. <action name="Focus"/>
  727. <action name="Raise"/>
  728. <action name="ShowMenu">
  729. <menu>client-menu</menu>
  730. </action>
  731. </mousebind>
  732. </context>
  733. <context name="AllDesktops">
  734. <mousebind button="Left" action="Press">
  735. <action name="Focus"/>
  736. <action name="Raise"/>
  737. <action name="Unshade"/>
  738. </mousebind>
  739. <mousebind button="Left" action="Click">
  740. <action name="ToggleOmnipresent"/>
  741. </mousebind>
  742. </context>
  743. <context name="Shade">
  744. <mousebind button="Left" action="Press">
  745. <action name="Focus"/>
  746. <action name="Raise"/>
  747. </mousebind>
  748. <mousebind button="Left" action="Click">
  749. <action name="ToggleShade"/>
  750. </mousebind>
  751. </context>
  752. <context name="Iconify">
  753. <mousebind button="Left" action="Press">
  754. <action name="Focus"/>
  755. <action name="Raise"/>
  756. </mousebind>
  757. <mousebind button="Left" action="Click">
  758. <action name="Iconify"/>
  759. </mousebind>
  760. </context>
  761. <context name="Maximize">
  762. <mousebind button="Left" action="Press">
  763. <action name="Focus"/>
  764. <action name="Raise"/>
  765. <action name="Unshade"/>
  766. </mousebind>
  767. <mousebind button="Middle" action="Press">
  768. <action name="Focus"/>
  769. <action name="Raise"/>
  770. <action name="Unshade"/>
  771. </mousebind>
  772. <mousebind button="Right" 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="ToggleMaximize"/>
  779. </mousebind>
  780. <mousebind button="Middle" action="Click">
  781. <action name="ToggleMaximize">
  782. <direction>vertical</direction>
  783. </action>
  784. </mousebind>
  785. <mousebind button="Right" action="Click">
  786. <action name="ToggleMaximize">
  787. <direction>horizontal</direction>
  788. </action>
  789. </mousebind>
  790. </context>
  791. <context name="Close">
  792. <mousebind button="Left" action="Press">
  793. <action name="Focus"/>
  794. <action name="Raise"/>
  795. <action name="Unshade"/>
  796. </mousebind>
  797. <mousebind button="Left" action="Click">
  798. <action name="Close"/>
  799. </mousebind>
  800. </context>
  801. <context name="Desktop">
  802. <mousebind button="Up" action="Click">
  803. <action name="GoToDesktop">
  804. <to>previous</to>
  805. </action>
  806. </mousebind>
  807. <mousebind button="Down" action="Click">
  808. <action name="GoToDesktop">
  809. <to>next</to>
  810. </action>
  811. </mousebind>
  812. <mousebind button="A-Up" action="Click">
  813. <action name="GoToDesktop">
  814. <to>previous</to>
  815. </action>
  816. </mousebind>
  817. <mousebind button="A-Down" action="Click">
  818. <action name="GoToDesktop">
  819. <to>next</to>
  820. </action>
  821. </mousebind>
  822. <mousebind button="C-A-Up" action="Click">
  823. <action name="GoToDesktop">
  824. <to>previous</to>
  825. </action>
  826. </mousebind>
  827. <mousebind button="C-A-Down" action="Click">
  828. <action name="GoToDesktop">
  829. <to>next</to>
  830. </action>
  831. </mousebind>
  832. <mousebind button="Left" action="Press">
  833. <action name="Focus"/>
  834. <action name="Raise"/>
  835. </mousebind>
  836. </context>
  837. <context name="Root">
  838. <!-- Menus -->
  839. <mousebind button="Middle" action="Press">
  840. <action name="ShowMenu">
  841. <menu>client-list-combined-menu</menu>
  842. </action>
  843. </mousebind>
  844. <mousebind button="Right" action="Press">
  845. <action name="ShowMenu">
  846. <menu>root-menu</menu>
  847. </action>
  848. </mousebind>
  849. </context>
  850. <context name="MoveResize">
  851. <mousebind button="Up" action="Click">
  852. <action name="GoToDesktop">
  853. <to>previous</to>
  854. </action>
  855. </mousebind>
  856. <mousebind button="Down" action="Click">
  857. <action name="GoToDesktop">
  858. <to>next</to>
  859. </action>
  860. </mousebind>
  861. <mousebind button="A-Up" action="Click">
  862. <action name="GoToDesktop">
  863. <to>previous</to>
  864. </action>
  865. </mousebind>
  866. <mousebind button="A-Down" action="Click">
  867. <action name="GoToDesktop">
  868. <to>next</to>
  869. </action>
  870. </mousebind>
  871. </context>
  872. </mouse>
  873. <menu>
  874. <!-- You can specify more than one menu file in here and they are all loaded,
  875. just don't make menu ids clash or, well, it'll be kind of pointless -->
  876. <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  877. <!-- system menu files on Debian systems
  878. <file>/var/lib/openbox/debian-menu.xml</file>
  879. <file>debian-menu.xml</file> -->
  880. <file>menu.xml</file>
  881. <hideDelay>200</hideDelay>
  882. <!-- if a press-release lasts longer than this setting (in milliseconds), the
  883. menu is hidden again -->
  884. <middle>no</middle>
  885. <!-- center submenus vertically about the parent entry -->
  886. <submenuShowDelay>100</submenuShowDelay>
  887. <!-- time to delay before showing a submenu after hovering over the parent
  888. entry.
  889. if this is a negative value, then the delay is infinite and the
  890. submenu will not be shown until it is clicked on -->
  891. <submenuHideDelay>400</submenuHideDelay>
  892. <!-- time to delay before hiding a submenu when selecting another
  893. entry in parent menu
  894. if this is a negative value, then the delay is infinite and the
  895. submenu will not be hidden until a different submenu is opened -->
  896. <applicationIcons>yes</applicationIcons>
  897. <!-- controls if icons appear in the client-list-(combined-)menu -->
  898. <manageDesktops>yes</manageDesktops>
  899. <!-- show the manage desktops section in the client-list-(combined-)menu -->
  900. </menu>
  901. <applications>
  902. <!--
  903. # this is an example with comments through out. use these to make your
  904. # own rules, but without the comments of course.
  905. # you may use one or more of the name/class/role/title/type rules to specify
  906. # windows to match
  907.  
  908. <application name="the window's _OB_APP_NAME property (see obxprop)"
  909. class="the window's _OB_APP_CLASS property (see obxprop)"
  910. role="the window's _OB_APP_ROLE property (see obxprop)"
  911. title="the window's _OB_APP_TITLE property (see obxprop)"
  912. type="the window's _OB_APP_TYPE property (see obxprob)..
  913. (if unspecified, then it is 'dialog' for child windows)">
  914. # you may set only one of name/class/role/title/type, or you may use more
  915. # than one together to restrict your matches.
  916.  
  917. # the name, class, role, and title use simple wildcard matching such as those
  918. # used by a shell. you can use * to match any characters and ? to match
  919. # any single character.
  920.  
  921. # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  922. # or desktop
  923.  
  924. # when multiple rules match a window, they will all be applied, in the
  925. # order that they appear in this list
  926.  
  927.  
  928. # each rule element can be left out or set to 'default' to specify to not
  929. # change that attribute of the window
  930.  
  931. <decor>yes</decor>
  932. # enable or disable window b
  933.  
  934. <shade>no</shade>
  935. # make the window shaded when it appears, or not
  936.  
  937. <position force="no">
  938. # the position is only used if both an x and y coordinate are provided
  939. # (and not set to 'default')
  940. # when force is "yes", then the window will be placed here even if it
  941. # says you want it placed elsewhere. this is to override buggy
  942. # applications who refuse to behave
  943. <x>center</x>
  944. # a number like 50, or 'center' to center on screen. use a negative number
  945. # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
  946. # right edge (or bottom).
  947. <y>200</y>
  948. <monitor>1</monitor>
  949. # specifies the monitor in a xinerama setup.
  950. # 1 is the first head, or 'mouse' for wherever the mouse is
  951. </position>
  952.  
  953. <focus>yes</focus>
  954. # if the window should try be given focus when it appears. if this is set
  955. # to yes it doesn't guarantee the window will be given focus. some
  956. # restrictions may apply, but Openbox will try to
  957.  
  958. <desktop>1</desktop>
  959. # 1 is the first desktop, 'all' for all desktops
  960.  
  961. <layer>normal</layer>
  962. # 'above', 'normal', or 'below'
  963.  
  964. <iconic>no</iconic>
  965. # make the window iconified when it appears, or not
  966.  
  967. <skip_pager>no</skip_pager>
  968. # asks to not be shown in pagers
  969.  
  970. <skip_taskbar>no</skip_taskbar>
  971. # asks to not be shown in taskbars. window cycling actions will also
  972. # skip past such windows
  973.  
  974. <fullscreen>yes</fullscreen>
  975. # make the window in fullscreen mode when it appears
  976.  
  977. <maximized>true</maximized>
  978. # 'Horizontal', 'Vertical' or boolean (yes/no)
  979. </application>
  980.  
  981. # end of the example
  982. -->
  983. <!--
  984. <application class="Gimp" name="gimp" role="gimp-toolbox" type="utility">
  985. <maximized>vertical</maximized>
  986. </application>
  987. <application class="Gimp" name="gimp" role="gimp-dock" type="utility">
  988. <maximized>vertical</maximized>
  989. </application>
  990. <application class="Gimp" name="gimp" role="gimp-image-window" type="normal">
  991. <position force="no">
  992. <x>center</x>
  993. <y>center</y>
  994. </position>
  995. </application>
  996.  
  997. <application class="Gimp" name="gimp-2.8" role="gimp-toolbox" type="utility">
  998. <maximized>vertical</maximized>
  999. </application>
  1000. <application class="Gimp" name="gimp-2.8" role="gimp-dock" type="utility">
  1001. <maximized>vertical</maximized>
  1002. </application>
  1003. <application class="Gimp" name="gimp-2.8" role="gimp-image-window" type="normal">
  1004. <position force="no">
  1005. <x>center</x>
  1006. <y>center</y>
  1007. </position>
  1008. </application>
  1009. -->
  1010. <application name="tilda">
  1011. <layer>below</layer>
  1012. </application>
  1013. </applications>
  1014. </openbox_config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement