Advertisement
learnlinuxtv

Untitled

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