Advertisement
Dobbie03

rc.xml

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