Advertisement
Guest User

openbox rc.xml

a guest
Oct 21st, 2011
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.73 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">
  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>UnderMouse</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>Mouse</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 -->
  37. </placement>
  38. <theme>
  39. <name>Clearlooks</name>
  40. <titleLayout>NDSLIMC</titleLayout>
  41. <!--
  42. available characters are NDSLIMC, each can occur at most once.
  43. N: window icon
  44. L: window label (AKA title).
  45. I: iconify
  46. M: maximize
  47. C: close
  48. S: shade (roll up/down)
  49. D: omnipresent (on all desktops).
  50. -->
  51. <keepBorder>yes</keepBorder>
  52. <animateIconify>no</animateIconify>
  53. <font place="ActiveWindow">
  54. <name>sans</name>
  55. <size>8</size>
  56. <!-- font size in points -->
  57. <weight>bold</weight>
  58. <!-- 'bold' or 'normal' -->
  59. <slant>normal</slant>
  60. <!-- 'italic' or 'normal' -->
  61. </font>
  62. <font place="InactiveWindow">
  63. <name>sans</name>
  64. <size>8</size>
  65. <!-- font size in points -->
  66. <weight>bold</weight>
  67. <!-- 'bold' or 'normal' -->
  68. <slant>normal</slant>
  69. <!-- 'italic' or 'normal' -->
  70. </font>
  71. <font place="MenuHeader">
  72. <name>sans</name>
  73. <size>9</size>
  74. <!-- font size in points -->
  75. <weight>normal</weight>
  76. <!-- 'bold' or 'normal' -->
  77. <slant>normal</slant>
  78. <!-- 'italic' or 'normal' -->
  79. </font>
  80. <font place="MenuItem">
  81. <name>sans</name>
  82. <size>9</size>
  83. <!-- font size in points -->
  84. <weight>normal</weight>
  85. <!-- 'bold' or 'normal' -->
  86. <slant>normal</slant>
  87. <!-- 'italic' or 'normal' -->
  88. </font>
  89. <font place="OnScreenDisplay">
  90. <name>sans</name>
  91. <size>9</size>
  92. <!-- font size in points -->
  93. <weight>bold</weight>
  94. <!-- 'bold' or 'normal' -->
  95. <slant>normal</slant>
  96. <!-- 'italic' or 'normal' -->
  97. </font>
  98. </theme>
  99. <desktops>
  100. <!-- this stuff is only used at startup, pagers allow you to change them
  101. during a session
  102.  
  103. these are default values to use when other ones are not already set
  104. by other applications, or saved in your session
  105.  
  106. use obconf if you want to change these without having to log out
  107. and back in -->
  108. <number>4</number>
  109. <firstdesk>1</firstdesk>
  110. <names>
  111. <!-- set names up here if you want to, like this:
  112. <name>desktop 1</name>
  113. <name>desktop 2</name>
  114. -->
  115. </names>
  116. <popupTime>400</popupTime>
  117. <!-- The number of milliseconds to show the popup for when switching
  118. desktops. Set this to 0 to disable the popup. -->
  119. </desktops>
  120. <resize>
  121. <drawContents>yes</drawContents>
  122. <popupShow>Nonpixel</popupShow>
  123. <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  124. <popupPosition>Center</popupPosition>
  125. <!-- 'Center', 'Top', or 'Fixed' -->
  126. <popupFixedPosition>
  127. <!-- these are used if popupPosition is set to 'Fixed' -->
  128. <x>center</x>
  129. <!-- positive number for distance from left edge, negative number for
  130. distance from right edge, or 'Center' -->
  131. <y>300</y>
  132. <!-- positive number for distance from top edge, negative number for
  133. distance from bottom edge, or 'Center' -->
  134. </popupFixedPosition>
  135. </resize>
  136. <!-- You can reserve a portion of your screen where windows will not cover when
  137. they are maximized, or when they are initially placed.
  138. Many programs reserve space automatically, but you can use this in other
  139. cases. -->
  140. <margins>
  141. <top>0</top>
  142. <bottom>0</bottom>
  143. <left>0</left>
  144. <right>0</right>
  145. </margins>
  146. <dock>
  147. <position>TopLeft</position>
  148. <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  149. <floatingX>0</floatingX>
  150. <floatingY>0</floatingY>
  151. <noStrut>no</noStrut>
  152. <stacking>Above</stacking>
  153. <!-- 'Above', 'Normal', or 'Below' -->
  154. <direction>Vertical</direction>
  155. <!-- 'Vertical' or 'Horizontal' -->
  156. <autoHide>no</autoHide>
  157. <hideDelay>300</hideDelay>
  158. <!-- in milliseconds (1000 = 1 second) -->
  159. <showDelay>300</showDelay>
  160. <!-- in milliseconds (1000 = 1 second) -->
  161. <moveButton>Middle</moveButton>
  162. <!-- 'Left', 'Middle', 'Right' -->
  163. </dock>
  164. <keyboard>
  165. <chainQuitKey>C-g</chainQuitKey>
  166. <!-- Keybindings for desktop switching -->
  167. <keybind key="C-A-Left">
  168. <action name="DesktopLeft">
  169. <dialog>no</dialog>
  170. <wrap>yes</wrap>
  171. </action>
  172. </keybind>
  173. <keybind key="C-A-Right">
  174. <action name="DesktopRight">
  175. <dialog>no</dialog>
  176. <wrap>yes</wrap>
  177. </action>
  178. </keybind>
  179. <keybind key="C-A-Up">
  180. <action name="DesktopUp">
  181. <dialog>no</dialog>
  182. <wrap>yes</wrap>
  183. </action>
  184. </keybind>
  185. <keybind key="C-A-Down">
  186. <action name="DesktopDown">
  187. <dialog>no</dialog>
  188. <wrap>yes</wrap>
  189. </action>
  190. </keybind>
  191. <keybind key="S-A-Left">
  192. <action name="SendToDesktopLeft">
  193. <dialog>no</dialog>
  194. <wrap>yes</wrap>
  195. </action>
  196. </keybind>
  197. <keybind key="S-A-Right">
  198. <action name="SendToDesktopRight">
  199. <dialog>no</dialog>
  200. <wrap>yes</wrap>
  201. </action>
  202. </keybind>
  203. <!-- colliding with ccw's eclipse keybind
  204. <keybind key="S-A-Up">
  205. <action name="SendToDesktopUp">
  206. <dialog>no</dialog>
  207. <wrap>yes</wrap>
  208. </action>
  209. </keybind>
  210. <keybind key="S-A-Down">
  211. <action name="SendToDesktopDown">
  212. <dialog>no</dialog>
  213. <wrap>yes</wrap>
  214. </action>
  215. </keybind>-->
  216. <keybind key="W-F1">
  217. <action name="Desktop">
  218. <desktop>1</desktop>
  219. </action>
  220. </keybind>
  221. <keybind key="W-F2">
  222. <action name="Desktop">
  223. <desktop>2</desktop>
  224. </action>
  225. </keybind>
  226. <keybind key="W-F3">
  227. <action name="Desktop">
  228. <desktop>3</desktop>
  229. </action>
  230. </keybind>
  231. <keybind key="W-F4">
  232. <action name="Desktop">
  233. <desktop>4</desktop>
  234. </action>
  235. </keybind>
  236. <keybind key="W-d">
  237. <action name="ToggleShowDesktop"/>
  238. </keybind>
  239. <!-- Keybindings for windows -->
  240. <keybind key="A-F4">
  241. <action name="Close"/>
  242. </keybind>
  243. <keybind key="A-Escape">
  244. <action name="Lower"/>
  245. <action name="FocusToBottom"/>
  246. <action name="Unfocus"/>
  247. </keybind>
  248. <keybind key="A-space">
  249. <action name="ShowMenu">
  250. <menu>client-menu</menu>
  251. </action>
  252. </keybind>
  253. <keybind key="Print">
  254. <action name="Execute">
  255. <execute>scrot</execute>
  256. </action>
  257. </keybind>
  258. <keybind key="A-Print">
  259. <action name="Execute">
  260. <execute>scrot -sb</execute>
  261. </action>
  262. </keybind>
  263. <!-- Keybindings for window switching -->
  264. <keybind key="A-Tab">
  265. <action name="NextWindow"/>
  266. </keybind>
  267. <keybind key="A-S-Tab">
  268. <action name="PreviousWindow"/>
  269. </keybind>
  270. <keybind key="C-A-Tab">
  271. <action name="NextWindow">
  272. <panels>yes</panels>
  273. <desktop>yes</desktop>
  274. </action>
  275. </keybind>
  276.  
  277. <!-- My keybindings for windows -->
  278.  
  279. <keybind key="W-Tab">
  280. <action name="NextWindow"><allDesktops>yes</allDesktops></action>
  281. </keybind>
  282.  
  283. <keybind key="A-F6">
  284. <action name="ToggleDecorations"/>
  285. </keybind>
  286.  
  287. <keybind key="A-F7">
  288. <action name="ToggleOmnipresent"/>
  289. </keybind>
  290.  
  291. <keybind key="A-F8">
  292. <action name="ToggleAlwaysOnTop"/>
  293. </keybind>
  294.  
  295. <keybind key="A-F9">
  296. <action name="Iconify"/>
  297. </keybind>
  298.  
  299. <keybind key="A-F10">
  300. <action name="ToggleMaximizeFull"/>
  301. </keybind>
  302.  
  303. <keybind key="A-F11">
  304. <action name="ToggleFullscreen"/>
  305. </keybind>
  306.  
  307. <keybind key="A-F12">
  308. <action name="ToggleShade"/>
  309. </keybind>
  310.  
  311. <keybind key="W-S-Left">
  312. <action name="SendToDesktopLeft"><follow>no</follow></action>
  313. </keybind>
  314.  
  315. <keybind key="W-S-Right">
  316. <action name="SendToDesktopRight"><follow>no</follow></action>
  317. </keybind>
  318.  
  319. <keybind key="W-S-Up">
  320. <action name="SendToDesktopUp"><follow>no</follow></action>
  321. </keybind>
  322.  
  323. <keybind key="W-S-Down">
  324. <action name="SendToDesktopDown"><follow>no</follow></action>
  325. </keybind>
  326.  
  327. <!-- My keybindings for system things -->
  328.  
  329. <keybind key="A-F1"><action name="ShowMenu">
  330. <menu>root-menu</menu>
  331. </action></keybind>
  332.  
  333. <keybind key="A-F2"><action name="Execute">
  334. <startupnotify><enabled>yes</enabled></startupnotify>
  335. <command>gmrun</command>
  336. </action></keybind>
  337.  
  338. <keybind key="A-F3"><action name="ShowMenu">
  339. <menu>client-list-combined-menu</menu>
  340. </action></keybind>
  341.  
  342. <keybind key="W-A-q" chroot="true">
  343. <keybind key="W-A-q">
  344. <action name="BreakChroot"/>
  345. </keybind>
  346. </keybind>
  347.  
  348. <keybind key="S-A-Prior"><action name="Execute">
  349. <command>setxkbmap sk -variant qwerty</command>
  350. </action></keybind>
  351.  
  352. <keybind key="S-A-Next"><action name="Execute">
  353. <command>setxkbmap us</command>
  354. </action></keybind>
  355.  
  356. <keybind key="XF86AudioRaiseVolume"><action name="Execute">
  357. <startupnotify><enabled>yes</enabled></startupnotify>
  358. <command>aumix -v +2</command>
  359. </action></keybind>
  360.  
  361. <keybind key="XF86AudioLowerVolume"><action name="Execute">
  362. <startupnotify><enabled>yes</enabled></startupnotify>
  363. <command>aumix -v -2</command>
  364. </action></keybind>
  365.  
  366. <keybind key="XF86AudioMute"><action name="Execute">
  367. <startupnotify><enabled>yes</enabled></startupnotify>
  368. <command>mute</command>
  369. </action></keybind>
  370. <!--
  371. <keybind key="W-A-h"><action name="Execute"><prompt>Really shutdown the computer?</prompt>
  372. <command>/sbin/shutdown -h now</command>
  373. </action></keybind>
  374.  
  375. <keybind key="W-A-r"><action name="Execute"><prompt>Really reboot the computer?</prompt>
  376. <command>/sbin/shutdown -r now</command>
  377. </action></keybind>
  378. -->
  379. <keybind key="W-r"><action name="Reconfigure"/></keybind>
  380.  
  381. <!-- My keybindings for applications -->
  382.  
  383. <keybind key="W-Return"><action name="Execute">
  384. <startupnotify><enabled>yes</enabled></startupnotify>
  385. <command>terminator --geometry=850x520</command>
  386. </action></keybind>
  387.  
  388. <keybind key="W-e"><action name="Execute">
  389. <startupnotify><enabled>yes</enabled></startupnotify>
  390. <command>pcmanfm</command>
  391. </action></keybind>
  392.  
  393. <keybind key="W-t"><action name="Execute">
  394. <startupnotify><enabled>yes</enabled></startupnotify>
  395. <command>pcmanfm /home/user</command>
  396. </action></keybind>
  397.  
  398. <keybind key="W-A-o"><action name="Execute">
  399. <startupnotify><enabled>yes</enabled></startupnotify>
  400. <command>opera</command>
  401. </action></keybind>
  402.  
  403. <keybind key="W-A-i"><action name="Execute">
  404. <startupnotify><enabled>yes</enabled></startupnotify>
  405. <command>iceweasel</command>
  406. </action></keybind>
  407.  
  408. <keybind key="W-A-p"><action name="Execute">
  409. <startupnotify><enabled>yes</enabled></startupnotify>
  410. <command>pidgin</command>
  411. </action></keybind>
  412.  
  413. <keybind key="W-A-e"><action name="Execute">
  414. <startupnotify><enabled>yes</enabled></startupnotify>
  415. <command>~/linux/eclipse/helios/eclipse</command>
  416. </action></keybind>
  417.  
  418. <keybind key="W-A-t"><action name="Execute">
  419. <startupnotify><enabled>yes</enabled></startupnotify>
  420. <command>/usr/local/netbeans-6.9/bin/netbeans</command>
  421. </action></keybind>
  422.  
  423. <keybind key="W-A-g"><action name="Execute">
  424. <startupnotify><enabled>yes</enabled></startupnotify>
  425. <command>geany</command>
  426. </action></keybind>
  427.  
  428. <keybind key="W-A-f"><action name="Execute">
  429. <startupnotify><enabled>yes</enabled></startupnotify>
  430. <command>filezilla</command>
  431. </action></keybind>
  432.  
  433. <keybind key="W-A-c"><action name="Execute">
  434. <startupnotify><enabled>yes</enabled></startupnotify>
  435. <command>galculator</command>
  436. </action></keybind>
  437.  
  438. <keybind key="XF86Calculator"><action name="Execute">
  439. <startupnotify><enabled>yes</enabled></startupnotify>
  440. <command>galculator</command>
  441. </action></keybind>
  442.  
  443. <keybind key="W-A-w"><action name="Execute">
  444. <startupnotify><enabled>yes</enabled></startupnotify>
  445. <command>lowriter</command>
  446. </action></keybind>
  447.  
  448. <keybind key="W-A-m"><action name="Execute">
  449. <command>midori</command>
  450. </action></keybind>
  451.  
  452. <keybind key="W-A-space"><action name="Execute">
  453. <command>mocp --toggle-pause</command>
  454. </action></keybind>
  455.  
  456. <keybind key="XF86AudioPlay"><action name="Execute">
  457. <command>mocp --toggle-pause</command>
  458. </action></keybind>
  459.  
  460. <keybind key="XF86AudioMedia"><action name="Execute">
  461. <command>terminator --maximise -e mocp</command>
  462. </action></keybind>
  463.  
  464. <keybind key="XF86Tools"><action name="Execute">
  465. <command>terminator --maximise -e mocp</command>
  466. </action></keybind>
  467.  
  468. <keybind key="XF86AudioNext"><action name="Execute">
  469. <command>mocp --next</command>
  470. </action></keybind>
  471.  
  472. <keybind key="XF86AudioPrev"><action name="Execute">
  473. <command>mocp --previous</command>
  474. </action></keybind>
  475.  
  476. <keybind key="XF86AudioStop"><action name="Execute">
  477. <command>mocp --exit</command>
  478. </action></keybind>
  479.  
  480. <keybind key="XF86Mail"><action name="Execute">
  481. <command>opera gmail.com</command>
  482. </action></keybind>
  483.  
  484. <keybind key="XF86Search"><action name="Execute">
  485. <command>opera encrypted.google.com</command>
  486. </action></keybind>
  487.  
  488. <keybind key="XF86AudioStop"><action name="Execute">
  489. <command>mocp --exit</command>
  490. </action></keybind>
  491.  
  492. <keybind key="W-A-v"><action name="Execute">
  493. <startupnotify><enabled>yes</enabled></startupnotify>
  494. <command>vlc</command>
  495. </action></keybind>
  496.  
  497. <keybind key="W-A-s"><action name="Execute">
  498. <startupnotify><enabled>yes</enabled></startupnotify>
  499. <command>smplayer</command>
  500. </action></keybind>
  501.  
  502. <keybind key="W-A-a"><action name="Execute">
  503. <startupnotify><enabled>yes</enabled></startupnotify>
  504. <command>alsamixergui</command>
  505. </action></keybind>
  506.  
  507. <keybind key="W-A-x"><action name="Execute">
  508. <startupnotify><enabled>yes</enabled></startupnotify>
  509. <command>terminator --maximise -e htop</command>
  510. </action></keybind>
  511.  
  512. <keybind key="W-A-n"><action name="Execute">
  513. <startupnotify><enabled>yes</enabled></startupnotify>
  514. <command>wicd-client -n</command>
  515. </action></keybind>
  516.  
  517. <keybind key="W-A-l"><action name="Execute">
  518. <startupnotify><enabled>yes</enabled></startupnotify>
  519. <!-- <command>xlock +description -mode blank +timeelapsed +showdate -timeout 3 -font -*-fixed-medium-r-normal-*-18-*-*-*-*-*-*-*</command> -->
  520. <command>i3lock -d</command>
  521. </action></keybind>
  522.  
  523. <!-- Monitor configuration keybindings -->
  524.  
  525. <keybind key="C-W-Up"><action name="Execute">
  526. <command>/home/user/bin/monitors/external.sh</command>
  527. </action></keybind>
  528.  
  529. <keybind key="C-W-Down"><action name="Execute">
  530. <command>/home/user/bin/monitors/internal.sh</command>
  531. </action></keybind>
  532.  
  533. <keybind key="C-W-Left"><action name="Execute">
  534. <command>/home/user/bin/monitors/left.sh</command>
  535. </action></keybind>
  536.  
  537. <keybind key="C-W-Right"><action name="Execute">
  538. <command>/home/user/bin/monitors/right.sh</command>
  539. </action></keybind>
  540.  
  541. <!-- moving the windows -->
  542. <keybind key="W-Up">
  543. <action name="MoveRelative"><x>0</x><y>-100</y></action>/>
  544. </keybind>
  545.  
  546. <keybind key="W-Down">
  547. <action name="MoveRelative"><x>0</x><y>100</y></action>/>
  548. </keybind>
  549.  
  550. <keybind key="W-Left">
  551. <action name="MoveRelative"><x>-150</x><y>0</y></action>/>
  552. </keybind>
  553.  
  554. <keybind key="W-Right">
  555. <action name="MoveRelative"><x>150</x><y>0</y></action>/>
  556. </keybind>
  557.  
  558. <keybind key="W-A-Up">
  559. <action name="MoveToEdgeNorth"/>
  560. </keybind>
  561.  
  562. <keybind key="W-A-Down">
  563. <action name="MoveToEdgeSouth"/>
  564. </keybind>
  565.  
  566. <keybind key="W-A-Left">
  567. <action name="MoveToEdgeWest"/>
  568. </keybind>
  569.  
  570. <keybind key="W-A-Right">
  571. <action name="MoveToEdgeEast"/>
  572. </keybind>
  573.  
  574.  
  575. </keyboard>
  576. <mouse>
  577. <dragThreshold>8</dragThreshold>
  578. <!-- number of pixels the mouse must move before a drag begins -->
  579. <doubleClickTime>200</doubleClickTime>
  580. <!-- in milliseconds (1000 = 1 second) -->
  581. <screenEdgeWarpTime>400</screenEdgeWarpTime>
  582. <!-- Time before changing desktops when the pointer touches the edge of the
  583. screen while moving a window, in milliseconds (1000 = 1 second).
  584. Set this to 0 to disable warping -->
  585. <context name="Frame">
  586. <mousebind button="A-Left" action="Press">
  587. <action name="Focus"/>
  588. <action name="Raise"/>
  589. </mousebind>
  590. <mousebind button="A-Left" action="Click">
  591. <action name="Unshade"/>
  592. </mousebind>
  593. <mousebind button="A-Left" action="Drag">
  594. <action name="Move"/>
  595. </mousebind>
  596. <mousebind button="A-Right" action="Press">
  597. <action name="Focus"/>
  598. <action name="Raise"/>
  599. <action name="Unshade"/>
  600. </mousebind>
  601. <mousebind button="A-Right" action="Drag">
  602. <action name="Resize"/>
  603. </mousebind>
  604. <mousebind button="A-Middle" action="Press">
  605. <action name="Lower"/>
  606. <action name="FocusToBottom"/>
  607. <action name="Unfocus"/>
  608. </mousebind>
  609. <mousebind button="C-A-Up" action="Click">
  610. <action name="DesktopPrevious"/>
  611. </mousebind>
  612. <mousebind button="C-A-Down" action="Click">
  613. <action name="DesktopNext"/>
  614. </mousebind>
  615. <mousebind button="A-S-Up" action="Click">
  616. <action name="SendToDesktopPrevious"/>
  617. </mousebind>
  618. <mousebind button="A-S-Down" action="Click">
  619. <action name="SendToDesktopNext"/>
  620. </mousebind>
  621. <mousebind button="A-Up" action="Click">
  622. <action name="Execute">
  623. <execute>transset-df -p --inc 0.1</execute>
  624. </action>
  625. </mousebind>
  626. <mousebind button="A-Down" action="Click">
  627. <action name="Execute">
  628. <execute>transset-df -p --min 0.2 --dec 0.1</execute>
  629. </action>
  630. </mousebind>
  631. <mousebind button="W-Up" action="Click">
  632. <action name="MaximizeFull"/>
  633. </mousebind>
  634. <mousebind button="W-Down" action="Click">
  635. <action name="UnmaximizeFull"/>
  636. </mousebind>
  637. <mousebind button="W-Left" action="Click">
  638. <action name="SendToTopLayer"/>
  639. <action name="Shade"/>
  640. <action name="Unfocus"/>
  641. </mousebind>
  642. <mousebind button="W-Right" action="Click">
  643. <action name="Iconify"/>
  644. </mousebind>
  645. <mousebind button="W-Middle" action="Press">
  646. <action name="Focus"/>
  647. <action name="Raise"/>
  648. <action name="Unshade"/>
  649. <action name="Close"/>
  650. </mousebind>
  651.  
  652. </context>
  653. <context name="Titlebar">
  654. <mousebind button="Left" action="Press">
  655. <action name="Focus"/>
  656. <action name="Raise"/>
  657. </mousebind>
  658. <mousebind button="Left" action="Drag">
  659. <action name="Move"/>
  660. </mousebind>
  661. <mousebind button="Left" action="DoubleClick">
  662. <action name="ToggleMaximizeFull"/>
  663. </mousebind>
  664. <mousebind button="Middle" action="Click">
  665. <action name="Lower"/>
  666. <action name="Unfocus"/>
  667. </mousebind>
  668. <mousebind button="Middle" action="Drag">
  669. <action name="Focus"/>
  670. <action name="Raise"/>
  671. <action name="Unshade"/>
  672. <action name="Close"/>
  673. </mousebind>
  674. <mousebind button="Up" action="Click">
  675. <action name="SendToTopLayer"/>
  676. <action name="Shade"/>
  677. <action name="Execute">
  678. <execute>transset-df -p --min 0.4 --dec 0.6</execute>
  679. </action>
  680. <action name="Unfocus"/>
  681. </mousebind>
  682. <mousebind button="Down" action="Click">
  683. <action name="Focus"/>
  684. <action name="SendToNormalLayer"/>
  685. <action name="Execute">
  686. <execute>transset-df -p --inc 0.6</execute>
  687. </action>
  688. <action name="Unshade"/>
  689. <action name="Raise"/>
  690. </mousebind>
  691. <mousebind button="Right" action="Press">
  692. <action name="Focus"/>
  693. <action name="Raise"/>
  694. <action name="ShowMenu">
  695. <menu>client-menu</menu>
  696. </action>
  697. </mousebind>
  698. </context>
  699. <context name="Top">
  700. <mousebind button="Left" action="Press">
  701. <action name="Focus"/>
  702. <action name="Raise"/>
  703. <action name="Unshade"/>
  704. </mousebind>
  705. <mousebind button="Left" action="Drag">
  706. <action name="Resize">
  707. <edge>top</edge>
  708. </action>
  709. </mousebind>
  710. </context>
  711. <context name="Left">
  712. <mousebind button="Left" action="Press">
  713. <action name="Focus"/>
  714. <action name="Raise"/>
  715. </mousebind>
  716. <mousebind button="Left" action="Drag">
  717. <action name="Resize">
  718. <edge>left</edge>
  719. </action>
  720. </mousebind>
  721. </context>
  722. <context name="Right">
  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>right</edge>
  730. </action>
  731. </mousebind>
  732. </context>
  733. <context name="Bottom">
  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>bottom</edge>
  741. </action>
  742. </mousebind>
  743. <mousebind button="Middle" action="Press">
  744. <action name="Lower"/>
  745. <action name="FocusToBottom"/>
  746. <action name="Unfocus"/>
  747. </mousebind>
  748. <mousebind button="Right" action="Press">
  749. <action name="Focus"/>
  750. <action name="Raise"/>
  751. <action name="ShowMenu">
  752. <menu>client-menu</menu>
  753. </action>
  754. </mousebind>
  755. </context>
  756. <context name="BLCorner">
  757. <mousebind button="Left" action="Press">
  758. <action name="Focus"/>
  759. <action name="Raise"/>
  760. </mousebind>
  761. <mousebind button="Left" action="Drag">
  762. <action name="Resize"/>
  763. </mousebind>
  764. </context>
  765. <context name="BRCorner">
  766. <mousebind button="Left" action="Press">
  767. <action name="Focus"/>
  768. <action name="Raise"/>
  769. </mousebind>
  770. <mousebind button="Left" action="Drag">
  771. <action name="Resize"/>
  772. </mousebind>
  773. </context>
  774. <context name="TLCorner">
  775. <mousebind button="Left" action="Press">
  776. <action name="Focus"/>
  777. <action name="Raise"/>
  778. <action name="Unshade"/>
  779. </mousebind>
  780. <mousebind button="Left" action="Drag">
  781. <action name="Resize"/>
  782. </mousebind>
  783. </context>
  784. <context name="TRCorner">
  785. <mousebind button="Left" action="Press">
  786. <action name="Focus"/>
  787. <action name="Raise"/>
  788. <action name="Unshade"/>
  789. </mousebind>
  790. <mousebind button="Left" action="Drag">
  791. <action name="Resize"/>
  792. </mousebind>
  793. </context>
  794. <context name="Client">
  795. <mousebind button="Left" action="Press">
  796. <action name="Focus"/>
  797. <action name="Raise"/>
  798. </mousebind>
  799. <mousebind button="Middle" action="Press">
  800. <action name="Focus"/>
  801. <action name="Raise"/>
  802. </mousebind>
  803. <mousebind button="Right" action="Press">
  804. <action name="Focus"/>
  805. <action name="Raise"/>
  806. </mousebind>
  807. </context>
  808. <context name="Icon">
  809. <mousebind button="Left" action="Press">
  810. <action name="Focus"/>
  811. <action name="Raise"/>
  812. <action name="Unshade"/>
  813. <action name="ShowMenu">
  814. <menu>client-menu</menu>
  815. </action>
  816. </mousebind>
  817. <mousebind button="Right" action="Press">
  818. <action name="Focus"/>
  819. <action name="Raise"/>
  820. <action name="ShowMenu">
  821. <menu>client-menu</menu>
  822. </action>
  823. </mousebind>
  824. </context>
  825. <context name="AllDesktops">
  826. <mousebind button="Left" action="Press">
  827. <action name="Focus"/>
  828. <action name="Raise"/>
  829. <action name="Unshade"/>
  830. </mousebind>
  831. <mousebind button="Left" action="Click">
  832. <action name="ToggleOmnipresent"/>
  833. </mousebind>
  834. </context>
  835. <context name="Shade">
  836. <mousebind button="Left" action="Press">
  837. <action name="Focus"/>
  838. <action name="Raise"/>
  839. </mousebind>
  840. <mousebind button="Left" action="Click">
  841. <action name="ToggleShade"/>
  842. </mousebind>
  843. </context>
  844. <context name="Iconify">
  845. <mousebind button="Left" action="Press">
  846. <action name="Focus"/>
  847. <action name="Raise"/>
  848. </mousebind>
  849. <mousebind button="Left" action="Click">
  850. <action name="Iconify"/>
  851. </mousebind>
  852. </context>
  853. <context name="Maximize">
  854. <mousebind button="Left" action="Press">
  855. <action name="Focus"/>
  856. <action name="Raise"/>
  857. <action name="Unshade"/>
  858. </mousebind>
  859. <mousebind button="Middle" action="Press">
  860. <action name="Focus"/>
  861. <action name="Raise"/>
  862. <action name="Unshade"/>
  863. </mousebind>
  864. <mousebind button="Right" action="Press">
  865. <action name="Focus"/>
  866. <action name="Raise"/>
  867. <action name="Unshade"/>
  868. </mousebind>
  869. <mousebind button="Left" action="Click">
  870. <action name="ToggleMaximizeFull"/>
  871. </mousebind>
  872. <mousebind button="Middle" action="Click">
  873. <action name="ToggleMaximizeVert"/>
  874. </mousebind>
  875. <mousebind button="Right" action="Click">
  876. <action name="ToggleMaximizeHorz"/>
  877. </mousebind>
  878. </context>
  879. <context name="Close">
  880. <mousebind button="Left" action="Press">
  881. <action name="Focus"/>
  882. <action name="Raise"/>
  883. <action name="Unshade"/>
  884. </mousebind>
  885. <mousebind button="Left" action="Click">
  886. <action name="Close"/>
  887. </mousebind>
  888. </context>
  889. <context name="Desktop">
  890. <mousebind button="Up" action="Click">
  891. <action name="DesktopPrevious"/>
  892. </mousebind>
  893. <mousebind button="Down" action="Click">
  894. <action name="DesktopNext"/>
  895. </mousebind>
  896. <mousebind button="A-Up" action="Click">
  897. <action name="DesktopPrevious"/>
  898. </mousebind>
  899. <mousebind button="A-Down" action="Click">
  900. <action name="DesktopNext"/>
  901. </mousebind>
  902. <mousebind button="C-A-Up" action="Click">
  903. <action name="DesktopPrevious"/>
  904. </mousebind>
  905. <mousebind button="C-A-Down" action="Click">
  906. <action name="DesktopNext"/>
  907. </mousebind>
  908. <mousebind button="Left" action="Press">
  909. <action name="Focus"/>
  910. <action name="Raise"/>
  911. </mousebind>
  912. <mousebind button="Right" action="Press">
  913. <action name="Focus"/>
  914. <action name="Raise"/>
  915. </mousebind>
  916. </context>
  917. <context name="Root">
  918. <!-- Menus -->
  919. <mousebind button="Middle" action="Press">
  920. <action name="ShowMenu">
  921. <menu>client-list-combined-menu</menu>
  922. </action>
  923. </mousebind>
  924. <mousebind button="Right" action="Press">
  925. <action name="ShowMenu">
  926. <menu>root-menu</menu>
  927. </action>
  928. </mousebind>
  929. </context>
  930. <context name="MoveResize">
  931. <mousebind button="Up" action="Click">
  932. <action name="DesktopPrevious"/>
  933. </mousebind>
  934. <mousebind button="Down" action="Click">
  935. <action name="DesktopNext"/>
  936. </mousebind>
  937. <mousebind button="A-Up" action="Click">
  938. <action name="DesktopPrevious"/>
  939. </mousebind>
  940. <mousebind button="A-Down" action="Click">
  941. <action name="DesktopNext"/>
  942. </mousebind>
  943. </context>
  944. </mouse>
  945. <menu>
  946. <!-- You can specify more than one menu file in here and they are all loaded,
  947. just don't make menu ids clash or, well, it'll be kind of pointless -->
  948. <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  949. <!-- system menu files on Debian systems -->
  950. <file>/var/lib/openbox/debian-menu.xml</file>
  951. <file>debian-menu.xml</file>
  952. <file>menu.xml</file>
  953. <hideDelay>200</hideDelay>
  954. <!-- if a press-release lasts longer than this setting (in milliseconds), the
  955. menu is hidden again -->
  956. <middle>no</middle>
  957. <!-- center submenus vertically about the parent entry -->
  958. <submenuShowDelay>100</submenuShowDelay>
  959. <!-- this one is easy, time to delay before showing a submenu after hovering
  960. over the parent entry -->
  961. <applicationIcons>yes</applicationIcons>
  962. <!-- controls if icons appear in the client-list-(combined-)menu -->
  963. <manageDesktops>yes</manageDesktops>
  964. <!-- show the manage desktops section in the client-list-(combined-)menu -->
  965. </menu>
  966. <applications>
  967.  
  968. <!-- my own application-specific settings -->
  969.  
  970. <!--
  971. <application name="opera">
  972. <desktop>1</desktop>
  973. </application>
  974.  
  975. <application name="Pidgin">
  976. <desktop>1</desktop>
  977. </application>
  978. -->
  979.  
  980. <application name="opera" class="Opera" type="normal">
  981. <maximized>yes</maximized>
  982. </application>
  983.  
  984. <!--
  985. <application name="Pidgin" role="multifield">
  986. <focus>no</focus>
  987. <iconic>yes</iconic>
  988. </application>
  989. -->
  990.  
  991. <application name="gmrun">
  992. <position force="yes"><x>center</x><y>300</y></position>
  993. </application>
  994.  
  995. <application type="toolbar">
  996. <skip_taskbar>yes</skip_taskbar>
  997. <skip_pager>yes</skip_pager>
  998. </application>
  999.  
  1000. <application type="dialog">
  1001. <skip_taskbar>yes</skip_taskbar>
  1002. <skip_pager>yes</skip_pager>
  1003. </application>
  1004.  
  1005.  
  1006. <!--
  1007. # this is an example with comments through out. use these to make your
  1008. # own rules, but without the comments of course.
  1009.  
  1010. <application name="first element of window's WM_CLASS property (see xprop)"
  1011. class="second element of window's WM_CLASS property (see xprop)"
  1012. role="the window's WM_WINDOW_ROLE property (see xprop)"
  1013. type="the window's _NET_WM_WINDOW_TYPE (if unspecified, then
  1014. it is dialog for child windows)">
  1015. # the name or the class can be set, or both. this is used to match
  1016. # windows when they appear. role can optionally be set as well, to
  1017. # further restrict your matches.
  1018.  
  1019. # the name, class, and role use simple wildcard matching such as those
  1020. # used by a shell. you can use * to match any characters and ? to match
  1021. # any single character.
  1022.  
  1023. # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  1024. # or desktop
  1025.  
  1026. # when multiple rules match a window, they will all be applied, in the
  1027. # order that they appear in this list
  1028.  
  1029.  
  1030. # each element can be left out or set to 'default' to specify to not
  1031. # change that attribute of the window
  1032.  
  1033. <decor>yes</decor>
  1034. # enable or disable window decorations
  1035.  
  1036. <shade>no</shade>
  1037. # make the window shaded when it appears, or not
  1038.  
  1039. <position force="no">
  1040. # the position is only used if both an x and y coordinate are provided
  1041. # (and not set to 'default')
  1042. # when force is "yes", then the window will be placed here even if it
  1043. # says you want it placed elsewhere. this is to override buggy
  1044. # applications who refuse to behave
  1045. <x>center</x>
  1046. # a number like 50, or 'center' to center on screen. use a negative number
  1047. # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
  1048. # right edge (or bottom).
  1049. <y>200</y>
  1050. <monitor>1</monitor>
  1051. # specifies the monitor in a xinerama setup.
  1052. # 1 is the first head, or 'mouse' for wherever the mouse is
  1053. </position>
  1054.  
  1055. <focus>yes</focus>
  1056. # if the window should try be given focus when it appears. if this is set
  1057. # to yes it doesn't guarantee the window will be given focus. some
  1058. # restrictions may apply, but Openbox will try to
  1059.  
  1060. <desktop>1</desktop>
  1061. # 1 is the first desktop, 'all' for all desktops
  1062.  
  1063. <layer>normal</layer>
  1064. # 'above', 'normal', or 'below'
  1065.  
  1066. <iconic>no</iconic>
  1067. # make the window iconified when it appears, or not
  1068.  
  1069. <skip_pager>no</skip_pager>
  1070. # asks to not be shown in pagers
  1071.  
  1072. <skip_taskbar>no</skip_taskbar>
  1073. # asks to not be shown in taskbars. window cycling actions will also
  1074. # skip past such windows
  1075.  
  1076. <fullscreen>yes</fullscreen>
  1077. # make the window in fullscreen mode when it appears
  1078.  
  1079. <maximized>true</maximized>
  1080. # 'Horizontal', 'Vertical' or boolean (yes/no)
  1081. </application>
  1082.  
  1083. # end of the example
  1084. -->
  1085. </applications>
  1086. </openbox_config>
  1087.  
  1088.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement