Guest User

rc.xml

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