Advertisement
Dobbie03

rx.xml for LB

Sep 2nd, 2017
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.49 KB | None | 0 0
  1. <?xml version="1.0"?>
  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>UnderMouse</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>Ocean-Light</name>
  44. <titleLayout>CIMLD</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>yes</animateIconify>
  57. <font place="ActiveWindow">
  58. <name>San Francisco Display</name>
  59. <size>10</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>San Francisco Display</name>
  70. <size>10</size>
  71. <!-- font size in points -->
  72. <weight>Normal</weight>
  73. <!-- 'bold' or 'normal' -->
  74. <slant>Normal</slant>
  75. <!-- 'italic' or 'normal' -->
  76. </font>
  77. <font place="MenuHeader">
  78. <name>Roboto Condensed,</name>
  79. <size>10</size>
  80. <!-- font size in points -->
  81. <weight>Bold</weight>
  82. <!-- 'bold' or 'normal' -->
  83. <slant>Normal</slant>
  84. <!-- 'italic' or 'normal' -->
  85. </font>
  86. <font place="MenuItem">
  87. <name>Roboto Condensed,</name>
  88. <size>10</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>Ubuntu</name>
  97. <size>10</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>Ubuntu</name>
  106. <size>10</size>
  107. <!-- font size in points -->
  108. <weight>Normal</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="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/ ; gpicview ~/Screenshots/$f'</command>
  359. </action>
  360. </keybind>
  361. <!-- Keybindings for window switching -->
  362. <keybind key="A-Tab">
  363. <action name="NextWindow">
  364. <raise>yes</raise>
  365. <finalactions>
  366. <action name="Focus"/>
  367. <action name="Raise"/>
  368. <action name="Unshade"/>
  369. </finalactions>
  370. </action>
  371. </keybind>
  372. <keybind key="A-S-Tab">
  373. <action name="PreviousWindow">
  374. <finalactions>
  375. <action name="Focus"/>
  376. <action name="Raise"/>
  377. <action name="Unshade"/>
  378. </finalactions>
  379. </action>
  380. </keybind>
  381. <keybind key="C-A-Tab">
  382. <action name="NextWindow">
  383. <panels>yes</panels>
  384. <desktop>yes</desktop>
  385. <finalactions>
  386. <action name="Focus"/>
  387. <action name="Raise"/>
  388. <action name="Unshade"/>
  389. </finalactions>
  390. </action>
  391. </keybind>
  392. <!-- Keybindings for window switching with the arrow keys -->
  393. <keybind key="W-S-Right">
  394. <action name="DirectionalCycleWindows">
  395. <direction>right</direction>
  396. </action>
  397. </keybind>
  398. <keybind key="W-S-Left">
  399. <action name="DirectionalCycleWindows">
  400. <direction>left</direction>
  401. </action>
  402. </keybind>
  403. <keybind key="W-S-Up">
  404. <action name="DirectionalCycleWindows">
  405. <direction>up</direction>
  406. </action>
  407. </keybind>
  408. <keybind key="W-S-Down">
  409. <action name="DirectionalCycleWindows">
  410. <direction>down</direction>
  411. </action>
  412. </keybind>
  413. <!-- Keybindings for running applications -->
  414. <keybind key="A-F2">
  415. <action name="Execute">
  416. <startupnotify>
  417. <enabled>true</enabled>
  418. <name>Run Program</name>
  419. </startupnotify>
  420. <command>rofi-launcher</command>
  421. </action>
  422. </keybind>
  423. <keybind key="A-F3">
  424. <action name="Execute">
  425. <startupnotify>
  426. <enabled>false</enabled>
  427. <name>dmenu-bind</name>
  428. </startupnotify>
  429. <command>dmenu_run -i -nb '#191919' -nf '#fea63c' -sb '#fea63c' -sf '#191919' -fn 'San Francisco Display Regular:pixelsize=18'</command>
  430. </action>
  431. </keybind>
  432. <keybind key="F9">
  433. <action name="Execute">
  434. <startupnotify>
  435. <enabled>true</enabled>
  436. <name>Run Program</name>
  437. </startupnotify>
  438. <command>skippy-xd --activate-window-picker</command>
  439. </action>
  440. </keybind>
  441. <keybind key="C-space">
  442. <action name="Execute">
  443. <startupnotify>
  444. <enabled>false</enabled>
  445. <name>rofi</name>
  446. </startupnotify>
  447. <command>rofi -modi run,drun,window -show drun -sidebar-mode</command>
  448. </action>
  449. </keybind>
  450. <keybind key="W-f">
  451. <action name="Execute">
  452. <startupnotify>
  453. <enabled>false</enabled>
  454. <name>File Manager</name>
  455. </startupnotify>
  456. <command>thunar</command>
  457. </action>
  458. </keybind>
  459. <keybind key="W-t">
  460. <action name="Execute">
  461. <startupnotify>
  462. <enabled>false</enabled>
  463. <name>Terminal</name>
  464. </startupnotify>
  465. <command>termite</command>
  466. </action>
  467. </keybind>
  468. <keybind key="W-C-t">
  469. <action name="Execute">
  470. <startupnotify>
  471. <enabled>false</enabled>
  472. <name>Terminal</name>
  473. </startupnotify>
  474. <command>termite</command>
  475. </action>
  476. </keybind>
  477. <keybind key="W-w">
  478. <action name="Execute">
  479. <startupnotify>
  480. <enabled>true</enabled>
  481. <name>Web Browser</name>
  482. </startupnotify>
  483. <command>chromium</command>
  484. </action>
  485. </keybind>
  486. <keybind key="W-l">
  487. <action name="Execute">
  488. <startupnotify>
  489. <enabled>false</enabled>
  490. <name>Lock screen</name>
  491. </startupnotify>
  492. <command>slimlock</command>
  493. </action>
  494. </keybind>
  495. <keybind key="W-e">
  496. <action name="Execute">
  497. <startupnotify>
  498. <enabled>false</enabled>
  499. <name>Editor</name>
  500. </startupnotify>
  501. <command>geany</command>
  502. </action>
  503. </keybind>
  504. <keybind key="W-m">
  505. <action name="Execute">
  506. <startupnotify>
  507. <enabled>false</enabled>
  508. <name>Mediaplayer</name>
  509. </startupnotify>
  510. <command>audacious</command>
  511. </action>
  512. </keybind>
  513. <keybind key="W-h">
  514. <action name="Execute">
  515. <startupnotify>
  516. <enabled>false</enabled>
  517. <name>htop</name>
  518. </startupnotify>
  519. <command>urxvt -T 'htop task manager' -e htop</command>
  520. </action>
  521. </keybind>
  522. <keybind key="W-v">
  523. <action name="Execute">
  524. <startupnotify>
  525. <enabled>true</enabled>
  526. <name>Volume</name>
  527. </startupnotify>
  528. <command>pavucontrol</command>
  529. </action>
  530. </keybind>
  531. <keybind key="XF86AudioMute">
  532. <action name="Execute">
  533. <command>amixer -D pulse set Master toggle</command>
  534. </action>
  535. </keybind>
  536. <keybind key="XF86AudioStop">
  537. <action name="Execute">
  538. <startupnotify>
  539. <enabled>false</enabled>
  540. <name>Stop</name>
  541. </startupnotify>
  542. <command>playerctl stop</command>
  543. </action>
  544. </keybind>
  545. <keybind key="XF86AudioPlay">
  546. <action name="Execute">
  547. <startupnotify>
  548. <enabled>false</enabled>
  549. <name>Play-Pause</name>
  550. </startupnotify>
  551. <command>playerctl play-pause</command>
  552. </action>
  553. </keybind>
  554. <!-- Keybindings for menus -->
  555. <keybind key="W-Tab">
  556. <action name="ShowMenu">
  557. <menu>client-list-combined-menu</menu>
  558. </action>
  559. </keybind>
  560. <keybind key="W-space">
  561. <action name="ShowMenu">
  562. <menu>root-menu</menu>
  563. </action>
  564. </keybind>
  565. <keybind key="A-C-q">
  566. <action name="ShowMenu">
  567. <menu>root-menu</menu>
  568. </action>
  569. </keybind>
  570. <!-- A bit of tiling -->
  571. <keybind key="W-Right">
  572. <action name="GrowToEdgeEast"/>
  573. </keybind>
  574. <keybind key="W-Left">
  575. <action name="GrowToEdgeWest"/>
  576. </keybind>
  577. <keybind key="W-Down">
  578. <action name="GrowToEdgeSouth"/>
  579. </keybind>
  580. <keybind key="W-Up">
  581. <action name="GrowToEdgeNorth"/>
  582. </keybind>
  583. <keybind key="W-A-Left">
  584. <action name="UnmaximizeFull"/>
  585. <action name="MaximizeVert"/>
  586. <action name="MoveResizeTo">
  587. <width>50%</width>
  588. <x>0</x>
  589. <y>0</y>
  590. </action>
  591. </keybind>
  592. <keybind key="W-A-Right">
  593. <action name="UnmaximizeFull"/>
  594. <action name="MaximizeVert"/>
  595. <action name="MoveResizeTo">
  596. <width>50%</width>
  597. <x>-0</x>
  598. <y>0</y>
  599. </action>
  600. </keybind>
  601. <keybind key="A-r">
  602. <action name="Resize"/>
  603. </keybind>
  604. <keybind key="A-m">
  605. <action name="Move"/>
  606. </keybind>
  607. <keybind key="C-S-Escape">
  608. <action name="Execute">
  609. <command>xfce4-taskmanager</command>
  610. </action>
  611. </keybind>
  612. </keyboard>
  613. <mouse>
  614. <dragThreshold>8</dragThreshold>
  615. <!-- number of pixels the mouse must move before a drag begins -->
  616. <doubleClickTime>200</doubleClickTime>
  617. <!-- in milliseconds (1000 = 1 second) -->
  618. <screenEdgeWarpTime>400</screenEdgeWarpTime>
  619. <!-- Time before changing desktops when the pointer touches the edge of the
  620. screen while moving a window, in milliseconds (1000 = 1 second).
  621. Set this to 0 to disable warping -->
  622. <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  623. <!-- Set this to TRUE to move the mouse pointer across the desktop when
  624. switching due to hitting the edge of the screen -->
  625. <context name="Frame">
  626. <mousebind action="Press" button="A-Left">
  627. <action name="Focus"/>
  628. <action name="Raise"/>
  629. </mousebind>
  630. <mousebind action="Click" button="A-Left">
  631. <action name="Unshade"/>
  632. </mousebind>
  633. <mousebind action="Drag" button="A-Left">
  634. <action name="Move"/>
  635. </mousebind>
  636. <mousebind action="Press" button="A-Right">
  637. <action name="Focus"/>
  638. <action name="Raise"/>
  639. <action name="Unshade"/>
  640. </mousebind>
  641. <mousebind action="Drag" button="A-Right">
  642. <action name="Resize"/>
  643. </mousebind>
  644. <mousebind action="Press" button="A-Middle">
  645. <action name="Lower"/>
  646. <action name="FocusToBottom"/>
  647. <action name="Unfocus"/>
  648. </mousebind>
  649. <mousebind action="Click" button="A-Up">
  650. <action name="GoToDesktop">
  651. <to>previous</to>
  652. </action>
  653. </mousebind>
  654. <mousebind action="Click" button="A-Down">
  655. <action name="GoToDesktop">
  656. <to>next</to>
  657. </action>
  658. </mousebind>
  659. <mousebind action="Click" button="C-A-Up">
  660. <action name="GoToDesktop">
  661. <to>previous</to>
  662. </action>
  663. </mousebind>
  664. <mousebind action="Click" button="C-A-Down">
  665. <action name="GoToDesktop">
  666. <to>next</to>
  667. </action>
  668. </mousebind>
  669. <mousebind action="Click" button="A-S-Up">
  670. <action name="SendToDesktop">
  671. <to>previous</to>
  672. </action>
  673. </mousebind>
  674. <mousebind action="Click" button="A-S-Down">
  675. <action name="SendToDesktop">
  676. <to>next</to>
  677. </action>
  678. </mousebind>
  679. </context>
  680. <context name="Titlebar">
  681. <mousebind action="Press" button="Left">
  682. <action name="Focus"/>
  683. <action name="Raise"/>
  684. </mousebind>
  685. <mousebind action="Drag" button="Left">
  686. <action name="Move"/>
  687. </mousebind>
  688. <mousebind action="DoubleClick" button="Left">
  689. <action name="ToggleShade"/>
  690. </mousebind>
  691. <mousebind action="Press" button="Middle">
  692. <action name="Lower"/>
  693. <action name="FocusToBottom"/>
  694. <action name="Unfocus"/>
  695. </mousebind>
  696. <mousebind action="Click" button="Up">
  697. <action name="if">
  698. <shaded>no</shaded>
  699. <then>
  700. <action name="Shade"/>
  701. <action name="FocusToBottom"/>
  702. <action name="Unfocus"/>
  703. <action name="Lower"/>
  704. </then>
  705. </action>
  706. </mousebind>
  707. <mousebind action="Click" button="Down">
  708. <action name="if">
  709. <shaded>yes</shaded>
  710. <then>
  711. <action name="Unshade"/>
  712. <action name="Raise"/>
  713. </then>
  714. </action>
  715. </mousebind>
  716. <mousebind action="Press" button="Right">
  717. <action name="Focus"/>
  718. <action name="Raise"/>
  719. <action name="ShowMenu">
  720. <menu>client-menu</menu>
  721. </action>
  722. </mousebind>
  723. </context>
  724. <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  725. <mousebind action="Press" button="Left">
  726. <action name="Focus"/>
  727. <action name="Raise"/>
  728. <action name="Unshade"/>
  729. </mousebind>
  730. <mousebind action="Press" button="Middle">
  731. <action name="Lower"/>
  732. <action name="FocusToBottom"/>
  733. <action name="Unfocus"/>
  734. </mousebind>
  735. <mousebind action="Press" button="Right">
  736. <action name="Focus"/>
  737. <action name="Raise"/>
  738. <action name="ShowMenu">
  739. <menu>client-menu</menu>
  740. </action>
  741. </mousebind>
  742. </context>
  743. <context name="Top">
  744. <mousebind action="Press" button="Left">
  745. <action name="Focus"/>
  746. <action name="Raise"/>
  747. <action name="Unshade"/>
  748. </mousebind>
  749. <mousebind action="Drag" button="Left">
  750. <action name="Resize">
  751. <edge>top</edge>
  752. </action>
  753. </mousebind>
  754. </context>
  755. <context name="Left">
  756. <mousebind action="Press" button="Left">
  757. <action name="Focus"/>
  758. <action name="Raise"/>
  759. </mousebind>
  760. <mousebind action="Drag" button="Left">
  761. <action name="Resize">
  762. <edge>left</edge>
  763. </action>
  764. </mousebind>
  765. </context>
  766. <context name="Right">
  767. <mousebind action="Press" button="Left">
  768. <action name="Focus"/>
  769. <action name="Raise"/>
  770. </mousebind>
  771. <mousebind action="Drag" button="Left">
  772. <action name="Resize">
  773. <edge>right</edge>
  774. </action>
  775. </mousebind>
  776. </context>
  777. <context name="Bottom">
  778. <mousebind action="Press" button="Left">
  779. <action name="Focus"/>
  780. <action name="Raise"/>
  781. </mousebind>
  782. <mousebind action="Drag" button="Left">
  783. <action name="Resize">
  784. <edge>bottom</edge>
  785. </action>
  786. </mousebind>
  787. <mousebind action="Press" button="Middle">
  788. <action name="Lower"/>
  789. <action name="FocusToBottom"/>
  790. <action name="Unfocus"/>
  791. </mousebind>
  792. <mousebind action="Press" button="Right">
  793. <action name="Focus"/>
  794. <action name="Raise"/>
  795. <action name="ShowMenu">
  796. <menu>client-menu</menu>
  797. </action>
  798. </mousebind>
  799. </context>
  800. <context name="TRCorner BRCorner TLCorner BLCorner">
  801. <mousebind action="Press" button="Left">
  802. <action name="Focus"/>
  803. <action name="Raise"/>
  804. <action name="Unshade"/>
  805. </mousebind>
  806. <mousebind action="Drag" button="Left">
  807. <action name="Resize"/>
  808. </mousebind>
  809. </context>
  810. <context name="Client">
  811. <mousebind action="Press" button="Left">
  812. <action name="Focus"/>
  813. <action name="Raise"/>
  814. </mousebind>
  815. <mousebind action="Press" button="Middle">
  816. <action name="Focus"/>
  817. <action name="Raise"/>
  818. </mousebind>
  819. <mousebind action="Press" button="Right">
  820. <action name="Focus"/>
  821. <action name="Raise"/>
  822. </mousebind>
  823. </context>
  824. <context name="Icon">
  825. <mousebind action="Press" button="Left">
  826. <action name="Focus"/>
  827. <action name="Raise"/>
  828. <action name="Unshade"/>
  829. <action name="ShowMenu">
  830. <menu>client-menu</menu>
  831. </action>
  832. </mousebind>
  833. <mousebind action="Press" button="Right">
  834. <action name="Focus"/>
  835. <action name="Raise"/>
  836. <action name="ShowMenu">
  837. <menu>client-menu</menu>
  838. </action>
  839. </mousebind>
  840. </context>
  841. <context name="AllDesktops">
  842. <mousebind action="Press" button="Left">
  843. <action name="Focus"/>
  844. <action name="Raise"/>
  845. <action name="Unshade"/>
  846. </mousebind>
  847. <mousebind action="Click" button="Left">
  848. <action name="ToggleOmnipresent"/>
  849. </mousebind>
  850. </context>
  851. <context name="Shade">
  852. <mousebind action="Press" button="Left">
  853. <action name="Focus"/>
  854. <action name="Raise"/>
  855. </mousebind>
  856. <mousebind action="Click" button="Left">
  857. <action name="ToggleShade"/>
  858. </mousebind>
  859. </context>
  860. <context name="Iconify">
  861. <mousebind action="Press" button="Left">
  862. <action name="Focus"/>
  863. <action name="Raise"/>
  864. </mousebind>
  865. <mousebind action="Click" button="Left">
  866. <action name="Iconify"/>
  867. </mousebind>
  868. </context>
  869. <context name="Maximize">
  870. <mousebind action="Press" button="Left">
  871. <action name="Focus"/>
  872. <action name="Raise"/>
  873. <action name="Unshade"/>
  874. </mousebind>
  875. <mousebind action="Press" button="Middle">
  876. <action name="Focus"/>
  877. <action name="Raise"/>
  878. <action name="Unshade"/>
  879. </mousebind>
  880. <mousebind action="Press" button="Right">
  881. <action name="Focus"/>
  882. <action name="Raise"/>
  883. <action name="Unshade"/>
  884. </mousebind>
  885. <mousebind action="Click" button="Left">
  886. <action name="ToggleMaximize"/>
  887. </mousebind>
  888. <mousebind action="Click" button="Middle">
  889. <action name="ToggleMaximize">
  890. <direction>vertical</direction>
  891. </action>
  892. </mousebind>
  893. <mousebind action="Click" button="Right">
  894. <action name="ToggleMaximize">
  895. <direction>horizontal</direction>
  896. </action>
  897. </mousebind>
  898. </context>
  899. <context name="Close">
  900. <mousebind action="Press" button="Left">
  901. <action name="Focus"/>
  902. <action name="Raise"/>
  903. <action name="Unshade"/>
  904. </mousebind>
  905. <mousebind action="Click" button="Left">
  906. <action name="Close"/>
  907. </mousebind>
  908. </context>
  909. <context name="Desktop">
  910. <mousebind action="Click" button="Up">
  911. <action name="GoToDesktop">
  912. <to>previous</to>
  913. </action>
  914. </mousebind>
  915. <mousebind action="Click" button="Down">
  916. <action name="GoToDesktop">
  917. <to>next</to>
  918. </action>
  919. </mousebind>
  920. <mousebind action="Click" button="A-Up">
  921. <action name="GoToDesktop">
  922. <to>previous</to>
  923. </action>
  924. </mousebind>
  925. <mousebind action="Click" button="A-Down">
  926. <action name="GoToDesktop">
  927. <to>next</to>
  928. </action>
  929. </mousebind>
  930. <mousebind action="Click" button="C-A-Up">
  931. <action name="GoToDesktop">
  932. <to>previous</to>
  933. </action>
  934. </mousebind>
  935. <mousebind action="Click" button="C-A-Down">
  936. <action name="GoToDesktop">
  937. <to>next</to>
  938. </action>
  939. </mousebind>
  940. <mousebind action="Press" button="Left">
  941. <action name="Focus"/>
  942. <action name="Raise"/>
  943. </mousebind>
  944. </context>
  945. <context name="Root">
  946. <!-- Menus -->
  947. <mousebind action="Press" button="Middle">
  948. <action name="ShowMenu">
  949. <menu>client-list-combined-menu</menu>
  950. </action>
  951. </mousebind>
  952. <mousebind action="Press" button="Right">
  953. <action name="ShowMenu">
  954. <menu>root-menu</menu>
  955. </action>
  956. </mousebind>
  957. </context>
  958. <context name="MoveResize">
  959. <mousebind action="Click" button="Up">
  960. <action name="GoToDesktop">
  961. <to>previous</to>
  962. </action>
  963. </mousebind>
  964. <mousebind action="Click" button="Down">
  965. <action name="GoToDesktop">
  966. <to>next</to>
  967. </action>
  968. </mousebind>
  969. <mousebind action="Click" button="A-Up">
  970. <action name="GoToDesktop">
  971. <to>previous</to>
  972. </action>
  973. </mousebind>
  974. <mousebind action="Click" button="A-Down">
  975. <action name="GoToDesktop">
  976. <to>next</to>
  977. </action>
  978. </mousebind>
  979. </context>
  980. </mouse>
  981. <menu>
  982. <!-- You can specify more than one menu file in here and they are all loaded,
  983. just don't make menu ids clash or, well, it'll be kind of pointless -->
  984. <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  985. <!-- system menu files on Debian systems
  986. <file>/var/lib/openbox/debian-menu.xml</file>
  987. <file>debian-menu.xml</file> -->
  988. <file>menu.xml</file>
  989. <hideDelay>200</hideDelay>
  990. <!-- if a press-release lasts longer than this setting (in milliseconds), the
  991. menu is hidden again -->
  992. <middle>no</middle>
  993. <!-- center submenus vertically about the parent entry -->
  994. <submenuShowDelay>100</submenuShowDelay>
  995. <!-- time to delay before showing a submenu after hovering over the parent
  996. entry.
  997. if this is a negative value, then the delay is infinite and the
  998. submenu will not be shown until it is clicked on -->
  999. <submenuHideDelay>400</submenuHideDelay>
  1000. <!-- time to delay before hiding a submenu when selecting another
  1001. entry in parent menu
  1002. if this is a negative value, then the delay is infinite and the
  1003. submenu will not be hidden until a different submenu is opened -->
  1004. <applicationIcons>yes</applicationIcons>
  1005. <!-- controls if icons appear in the client-list-(combined-)menu -->
  1006. <manageDesktops>yes</manageDesktops>
  1007. <!-- show the manage desktops section in the client-list-(combined-)menu -->
  1008. </menu>
  1009. <applications>
  1010. <application name="oblogout">
  1011. <position force="yes">
  1012. <monitor>1</monitor>
  1013. </position>
  1014. <fullscreen>yes</fullscreen>
  1015. </application>
  1016. <!--
  1017. # this is an example with comments through out. use these to make your
  1018. # own rules, but without the comments of course.
  1019. # you may use one or more of the name/class/role/title/type rules to specify
  1020. # windows to match
  1021.  
  1022. <application name="the window's _OB_APP_NAME property (see obxprop)"
  1023. class="the window's _OB_APP_CLASS property (see obxprop)"
  1024. role="the window's _OB_APP_ROLE property (see obxprop)"
  1025. title="the window's _OB_APP_TITLE property (see obxprop)"
  1026. type="the window's _OB_APP_TYPE property (see obxprob)..
  1027. (if unspecified, then it is 'dialog' for child windows)">
  1028. # you may set only one of name/class/role/title/type, or you may use more
  1029. # than one together to restrict your matches.
  1030.  
  1031. # the name, class, role, and title use simple wildcard matching such as those
  1032. # used by a shell. you can use * to match any characters and ? to match
  1033. # any single character.
  1034.  
  1035. # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  1036. # or desktop
  1037.  
  1038. # when multiple rules match a window, they will all be applied, in the
  1039. # order that they appear in this list
  1040.  
  1041.  
  1042. # each rule element can be left out or set to 'default' to specify to not
  1043. # change that attribute of the window
  1044.  
  1045. <decor>yes</decor>
  1046. # enable or disable window b
  1047.  
  1048. <shade>no</shade>
  1049. # make the window shaded when it appears, or not
  1050.  
  1051. <position force="no">
  1052. # the position is only used if both an x and y coordinate are provided
  1053. # (and not set to 'default')
  1054. # when force is "yes", then the window will be placed here even if it
  1055. # says you want it placed elsewhere. this is to override buggy
  1056. # applications who refuse to behave
  1057. <x>center</x>
  1058. # a number like 50, or 'center' to center on screen. use a negative number
  1059. # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
  1060. # right edge (or bottom).
  1061. <y>200</y>
  1062. <monitor>1</monitor>
  1063. # specifies the monitor in a xinerama setup.
  1064. # 1 is the first head, or 'mouse' for wherever the mouse is
  1065. </position>
  1066.  
  1067. <focus>yes</focus>
  1068. # if the window should try be given focus when it appears. if this is set
  1069. # to yes it doesn't guarantee the window will be given focus. some
  1070. # restrictions may apply, but Openbox will try to
  1071.  
  1072. <desktop>1</desktop>
  1073. # 1 is the first desktop, 'all' for all desktops
  1074.  
  1075. <layer>normal</layer>
  1076. # 'above', 'normal', or 'below'
  1077.  
  1078. <iconic>no</iconic>
  1079. # make the window iconified when it appears, or not
  1080.  
  1081. <skip_pager>no</skip_pager>
  1082. # asks to not be shown in pagers
  1083.  
  1084. <skip_taskbar>no</skip_taskbar>
  1085. # asks to not be shown in taskbars. window cycling actions will also
  1086. # skip past such windows
  1087.  
  1088. <fullscreen>yes</fullscreen>
  1089. # make the window in fullscreen mode when it appears
  1090.  
  1091. <maximized>true</maximized>
  1092. # 'Horizontal', 'Vertical' or boolean (yes/no)
  1093. </application>
  1094.  
  1095. # end of the example
  1096. -->
  1097. <!--
  1098. <application class="Gimp" name="gimp" role="gimp-toolbox" type="utility">
  1099. <maximized>vertical</maximized>
  1100. </application>
  1101. <application class="Gimp" name="gimp" role="gimp-dock" type="utility">
  1102. <maximized>vertical</maximized>
  1103. </application>
  1104. <application class="Gimp" name="gimp" role="gimp-image-window" type="normal">
  1105. <position force="no">
  1106. <x>center</x>
  1107. <y>center</y>
  1108. </position>
  1109. </application>
  1110.  
  1111. <application class="Gimp" name="gimp-2.8" role="gimp-toolbox" type="utility">
  1112. <maximized>vertical</maximized>
  1113. </application>
  1114. <application class="Gimp" name="gimp-2.8" role="gimp-dock" type="utility">
  1115. <maximized>vertical</maximized>
  1116. </application>
  1117. <application class="Gimp" name="gimp-2.8" role="gimp-image-window" type="normal">
  1118. <position force="no">
  1119. <x>center</x>
  1120. <y>center</y>
  1121. </position>
  1122. </application>
  1123. -->
  1124. <application name="tilda">
  1125. <layer>below</layer>
  1126. <maximized>yes</maximized>
  1127. <skip_taskbar>yes</skip_taskbar>
  1128. <skip_pager>yes</skip_pager>
  1129. </application>
  1130. </applications>
  1131. </openbox_config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement