rc.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870
  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. <followMouse>no</followMouse>
  10. <focusLast>yes</focusLast>
  11. <underMouse>no</underMouse>
  12. <focusDelay>200</focusDelay>
  13. <raiseOnFocus>no</raiseOnFocus>
  14. </focus>
  15. <placement>
  16. <policy>Smart</policy>
  17. <center>yes</center>
  18. <monitor>Mouse</monitor>
  19. <primaryMonitor>Mouse</primaryMonitor>
  20. </placement>
  21. <theme>
  22. <name>blocks</name>
  23. <titleLayout>CLM</titleLayout>
  24. <keepBorder>yes</keepBorder>
  25. <animateIconify>yes</animateIconify>
  26. <font place="ActiveWindow">
  27. <name>Sans</name>
  28. <size>10</size>
  29. <weight>Normal</weight>
  30. <slant>Normal</slant>
  31. </font>
  32. <font place="InactiveWindow">
  33. <name>Sans</name>
  34. <size>10</size>
  35. <weight>Normal</weight>
  36. <slant>Normal</slant>
  37. </font>
  38. <font place="MenuHeader">
  39. <name>Sans</name>
  40. <size>10</size>
  41. <weight>Normal</weight>
  42. <slant>Normal</slant>
  43. </font>
  44. <font place="MenuItem">
  45. <name>Sans</name>
  46. <size>11</size>
  47. <weight>Normal</weight>
  48. <slant>Normal</slant>
  49. </font>
  50. <font place="ActiveOnScreenDisplay">
  51. <name>Sans</name>
  52. <size>10</size>
  53. <weight>Normal</weight>
  54. <slant>Normal</slant>
  55. </font>
  56. <font place="InactiveOnScreenDisplay">
  57. <name>Sans</name>
  58. <size>10</size>
  59. <weight>Normal</weight>
  60. <slant>Normal</slant>
  61. </font>
  62. </theme>
  63. <desktops>
  64. <number>5</number>
  65. <firstdesk>0</firstdesk>
  66. <names>
  67. <name>01</name>
  68. <name>02</name>
  69. <name>03</name>
  70. <name>04</name>
  71. <name>05</name>
  72. <name>06</name>
  73. <name>07</name>
  74. <name>08</name>
  75. </names>
  76. <popupTime>0</popupTime>
  77. </desktops>
  78. <resize>
  79. <drawContents>yes</drawContents>
  80. <popupShow>Never</popupShow>
  81. <popupPosition>Center</popupPosition>
  82. <popupFixedPosition>
  83. <x>10</x>
  84. <y>10</y>
  85. </popupFixedPosition>
  86. </resize>
  87. <margins>
  88. <top>80</top>
  89. <bottom>25</bottom>
  90. <left>50</left>
  91. <right>50</right>
  92. </margins>
  93. <dock>
  94. <position>Bottom</position>
  95. <floatingX>0</floatingX>
  96. <floatingY>0</floatingY>
  97. <noStrut>no</noStrut>
  98. <stacking>Above</stacking>
  99. <direction>Vertical</direction>
  100. <autoHide>no</autoHide>
  101. <hideDelay>300</hideDelay>
  102. <showDelay>300</showDelay>
  103. <moveButton>Middle</moveButton>
  104. </dock>
  105. <!-- KEYBINDINGS -->
  106. <keyboard>
  107. <chainQuitKey/>
  108. <keybind key="W-1">
  109. <action name="GoToDesktop">
  110. <to>1</to>
  111. </action>
  112. </keybind>
  113. <keybind key="W-2">
  114. <action name="GoToDesktop">
  115. <to>2</to>
  116. </action>
  117. </keybind>
  118. <keybind key="W-3">
  119. <action name="GoToDesktop">
  120. <to>3</to>
  121. </action>
  122. </keybind>
  123. <keybind key="W-4">
  124. <action name="GoToDesktop">
  125. <to>4</to>
  126. </action>
  127. </keybind>
  128. <keybind key="W-5">
  129. <action name="GoToDesktop">
  130. <to>5</to>
  131. </action>
  132. </keybind>
  133. <keybind key="W-6">
  134. <action name="GoToDesktop">
  135. <to>6</to>
  136. </action>
  137. </keybind>
  138. <keybind key="W-7">
  139. <action name="GoToDesktop">
  140. <to>7</to>
  141. </action>
  142. </keybind>
  143. <keybind key="W-8">
  144. <action name="GoToDesktop">
  145. <to>8</to>
  146. </action>
  147. </keybind>
  148. <keybind key="S-W-1">
  149. <action name="SendToDesktop">
  150. <desktop>1</desktop>
  151. </action>
  152. </keybind>
  153. <keybind key="S-W-2">
  154. <action name="SendToDesktop">
  155. <desktop>2</desktop>
  156. </action>
  157. </keybind>
  158. <keybind key="S-W-3">
  159. <action name="SendToDesktop">
  160. <desktop>3</desktop>
  161. </action>
  162. </keybind>
  163. <keybind key="S-W-4">
  164. <action name="SendToDesktop">
  165. <desktop>4</desktop>
  166. </action>
  167. </keybind>
  168. <keybind key="S-W-5">
  169. <action name="SendToDesktop">
  170. <desktop>5</desktop>
  171. </action>
  172. </keybind>
  173. <keybind key="S-W-6">
  174. <action name="SendToDesktop">
  175. <desktop>6</desktop>
  176. </action>
  177. </keybind>
  178. <keybind key="S-W-7">
  179. <action name="SendToDesktop">
  180. <desktop>7</desktop>
  181. </action>
  182. </keybind>
  183. <keybind key="S-W-8">
  184. <action name="SendToDesktop">
  185. <desktop>8</desktop>
  186. </action>
  187. </keybind>
  188. <keybind key="A-Tab">
  189. <action name="NextWindow">
  190. <allDesktops>yes</allDesktops>
  191. <raise>yes</raise>
  192. <!-- Hide black border around windows -->
  193. <bar>no</bar>
  194. <finalactions>
  195. <action name="Focus"/>
  196. <action name="UnshadeRaise"/>
  197. </finalactions>
  198. </action>
  199. </keybind>
  200. <keybind key="W-Tab">
  201. <action name="NextWindow">
  202. <allDesktops>yes</allDesktops>
  203. <!-- Hide black border around windows -->
  204. <bar>no</bar>
  205. <finalactions>
  206. <action name="SendToDesktop">
  207. <to>current</to>
  208. </action>
  209. <action name="focus"/>
  210. <action name="raise"/>
  211. </finalactions>
  212. </action>
  213. </keybind>
  214. <!-- Window Tiling: Snap feature -->
  215. <keybind key="W-Left">
  216. <action name="UnmaximizeFull"/>
  217. <action name="MaximizeVert"/>
  218. <action name="MoveResizeTo">
  219. <width>50%</width>
  220. </action>
  221. <action name="MoveToEdgeWest"/>
  222. </keybind>
  223. <keybind key="W-Right">
  224. <action name="UnmaximizeFull"/>
  225. <action name="MaximizeVert"/>
  226. <action name="MoveResizeTo">
  227. <width>50%</width>
  228. </action>
  229. <action name="MoveToEdgeEast"/>
  230. </keybind>
  231. <keybind key="W-Up">
  232. <action name="MaximizeFull"/>
  233. </keybind>
  234. <keybind key="W-Down">
  235. <action name="UnmaximizeFull"/>
  236. <action name="MoveResizeTo">
  237. <width>80%</width>
  238. <height>80%</height>
  239. </action>
  240. <action name="MoveToCenter"/>
  241. </keybind>
  242. <!-- Top right-->
  243. <keybind key="W-k">
  244. <action name="Unmaximize"/>
  245. <action name="MoveResizeTo">
  246. <x>-15</x>
  247. <y>15</y>
  248. </action>
  249. </keybind>
  250. <!-- Top left-->
  251. <keybind key="W-h">
  252. <action name="Unmaximize"/>
  253. <action name="MoveResizeTo">
  254. <x>15</x>
  255. <y>15</y>
  256. </action>
  257. </keybind>
  258. <!-- Bottom left-->
  259. <keybind key="W-j">
  260. <action name="Unmaximize"/>
  261. <action name="MoveResizeTo">
  262. <x>15</x>
  263. <y>-15</y>
  264. </action>
  265. </keybind>
  266. <!-- Bottom right-->
  267. <keybind key="W-l">
  268. <action name="Unmaximize"/>
  269. <action name="MoveResizeTo">
  270. <x>-15</x>
  271. <y>-15</y>
  272. </action>
  273. </keybind>
  274. <keybind key="A-z">
  275. <action name="Unmaximize"/>
  276. <action name="MoveResizeTo">
  277. <x>15</x>
  278. <y>15</y>
  279. <height>97%</height>
  280. <width>32%</width>
  281. </action>
  282. </keybind>
  283. <keybind key="A-x">
  284. <action name="Unmaximize"/>
  285. <action name="MoveResizeTo">
  286. <x>34%</x>
  287. <y>15</y>
  288. <height>97%</height>
  289. <width>32%</width>
  290. </action>
  291. </keybind>
  292. <keybind key="A-c">
  293. <action name="Unmaximize"/>
  294. <action name="MoveResizeTo">
  295. <x>-17</x>
  296. <y>15</y>
  297. <height>97%</height>
  298. <width>32%</width>
  299. </action>
  300. </keybind>
  301. <!-- Move -->
  302. <keybind key="W-Up">
  303. <action name="MoveRelative">
  304. <x>0</x>
  305. <y>-20</y>
  306. </action>
  307. </keybind>
  308. <keybind key="W-Down">
  309. <action name="MoveRelative">
  310. <x>0</x>
  311. <y>20</y>
  312. </action>
  313. </keybind>
  314. <!-- Resize -->
  315. <keybind key="C-A-Right">
  316. <action name="ResizeRelative">
  317. <right>20</right>
  318. </action>
  319. </keybind>
  320. <keybind key="C-A-Left">
  321. <action name="ResizeRelative">
  322. <right>-20</right>
  323. </action>
  324. </keybind>
  325. <keybind key="C-A-Down">
  326. <action name="ResizeRelative">
  327. <bottom>20</bottom>
  328. </action>
  329. </keybind>
  330. <keybind key="C-A-Up">
  331. <action name="ResizeRelative">
  332. <bottom>-20</bottom>
  333. </action>
  334. </keybind>
  335. <keybind key="W-S-Left">
  336. <action name="SendToDesktopLeft"/>
  337. </keybind>
  338. <keybind key="W-S-Right">
  339. <action name="SendToDesktopRight"/>
  340. </keybind>
  341. <keybind key="XF86AudioRaiseVolume">
  342. <action name="Execute">
  343. <command>amixer set Master 3%+</command>
  344. </action>
  345. </keybind>
  346. <keybind key="XF86AudioLowerVolume">
  347. <action name="Execute">
  348. <command>amixer set Master 3%-</command>
  349. </action>
  350. </keybind>
  351. <keybind key="XF86AudioMute">
  352. <action name="Execute">
  353. <command>amixer set Master toggle</command>
  354. </action>
  355. </keybind>
  356. <keybind key="Print">
  357. <action name="Execute">
  358. <command>xfce4-screenshooter</command>
  359. </action>
  360. </keybind>
  361. <!-- USER's Keys -->
  362. <keybind key="W-S">
  363. <action name="Execute">
  364. <command>~/.config/rofi/scripts/simple.sh</command>
  365. </action>
  366. </keybind>
  367. <!-- Openbox -->
  368. <keybind key="C-S-Escape">
  369. <action name="Exit"/>
  370. </keybind>
  371. <keybind key="C-S-BackSpace">
  372. <action name="Restart"/>
  373. </keybind>
  374. <keybind key="C-S-R">
  375. <action name="Reconfigure"/>
  376. </keybind>
  377. <keybind key="W-Escape">
  378. <action name="Execute">
  379. <command>xkill</command>
  380. </action>
  381. </keybind>
  382. <keybind key="A-F4">
  383. <action name="Close"/>
  384. </keybind>
  385. <keybind key="A-F5">
  386. <action name="Iconify"/>
  387. </keybind>
  388. <keybind key="A-F6">
  389. <action name="ToggleMaximize"/>
  390. </keybind>
  391. <keybind key="A-F7">
  392. <action name="ToggleDecorations"/>
  393. </keybind>
  394. <keybind key="W-d">
  395. <action name="ToggleShowDesktop"/>
  396. </keybind>
  397. <keybind key="A-r">
  398. <action name="Resize"/>
  399. </keybind>
  400. <keybind key="A-m">
  401. <action name="Move"/>
  402. </keybind>
  403. <keybind key="S-W-q">
  404. <action name="Close"/>
  405. </keybind>
  406. <keybind key="W-space">
  407. <action name="ShowMenu">
  408. <menu>root-menu</menu>
  409. </action>
  410. </keybind>
  411. <keybind key="A-space">
  412. <action name="ShowMenu">
  413. <menu>client-menu</menu>
  414. </action>
  415. </keybind>
  416. <keybind key="W-KP_1">
  417. <action name="UnmaximizeFull"/>
  418. <action name="MoveResizeTo">
  419. <x>0</x>
  420. <y>-0</y>
  421. <width>50%</width>
  422. <height>50%</height>
  423. </action>
  424. </keybind>
  425. <keybind key="W-KP_2">
  426. <action name="UnmaximizeFull"/>
  427. <action name="MoveResizeTo">
  428. <x>0</x>
  429. <y>-0</y>
  430. <width>100%</width>
  431. <height>50%</height>
  432. </action>
  433. </keybind>
  434. <keybind key="W-KP_3">
  435. <action name="UnmaximizeFull"/>
  436. <action name="MoveResizeTo">
  437. <x>-0</x>
  438. <y>-0</y>
  439. <width>50%</width>
  440. <height>50%</height>
  441. </action>
  442. </keybind>
  443. <keybind key="W-KP_4">
  444. <action name="UnmaximizeFull"/>
  445. <action name="MoveResizeTo">
  446. <x>0</x>
  447. <y>0</y>
  448. <width>50%</width>
  449. <height>100%</height>
  450. </action>
  451. </keybind>
  452. <keybind key="W-KP_5">
  453. <action name="MaximizeFull"/>
  454. </keybind>
  455. <keybind key="W-KP_6">
  456. <action name="UnmaximizeFull"/>
  457. <action name="MoveResizeTo">
  458. <x>-0</x>
  459. <y>0</y>
  460. <width>50%</width>
  461. <height>100%</height>
  462. </action>
  463. </keybind>
  464. <keybind key="W-KP_7">
  465. <action name="UnmaximizeFull"/>
  466. <action name="MoveResizeTo">
  467. <x>0</x>
  468. <y>0</y>
  469. <width>50%</width>
  470. <height>50%</height>
  471. </action>
  472. </keybind>
  473. <keybind key="W-KP_8">
  474. <action name="UnmaximizeFull"/>
  475. <action name="MoveResizeTo">
  476. <x>0</x>
  477. <y>0</y>
  478. <width>100%</width>
  479. <height>50%</height>
  480. </action>
  481. </keybind>
  482. <keybind key="W-KP_9">
  483. <action name="UnmaximizeFull"/>
  484. <action name="MoveResizeTo">
  485. <x>-0</x>
  486. <y>0</y>
  487. <width>50%</width>
  488. <height>50%</height>
  489. </action>
  490. </keybind>
  491. </keyboard>
  492. <mouse>
  493. <dragThreshold>4</dragThreshold>
  494. <doubleClickTime>400</doubleClickTime>
  495. <screenEdgeWarpTime>600</screenEdgeWarpTime>
  496. <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  497. <context name="Frame">
  498. <mousebind action="Press" button="A-Left">
  499. <action name="Focus"/>
  500. <action name="Raise"/>
  501. </mousebind>
  502. <mousebind action="Drag" button="A-Left">
  503. <action name="Move"/>
  504. </mousebind>
  505. <mousebind action="Press" button="A-Right">
  506. <action name="Focus"/>
  507. <action name="Raise"/>
  508. <action name="Unshade"/>
  509. </mousebind>
  510. <mousebind action="Drag" button="A-Right">
  511. <action name="Resize"/>
  512. </mousebind>
  513. </context>
  514. <context name="Titlebar">
  515. <mousebind action="Press" button="A-Left">
  516. <action name="Focus"/>
  517. <action name="Raise"/>
  518. </mousebind>
  519. <mousebind action="Drag" button="A-Left">
  520. <action name="Move"/>
  521. </mousebind>
  522. <mousebind action="Press" button="Left">
  523. <action name="Focus"/>
  524. <action name="Raise"/>
  525. </mousebind>
  526. <mousebind action="Drag" button="Left">
  527. <action name="if">
  528. <maximizedvertical>yes</maximizedvertical>
  529. <then>
  530. <action name="Unmaximize"/>
  531. <direction>vertical</direction>
  532. <action name="MoveResizeTo">
  533. <x>center</x>
  534. <y>current</y>
  535. </action>
  536. <action name="Move"/>
  537. </then>
  538. <else>
  539. <action name="Move"/>
  540. </else>
  541. </action>
  542. </mousebind>
  543. <mousebind action="DoubleClick" button="Left">
  544. <action name="ToggleMaximizeFull"/>
  545. </mousebind>
  546. <mousebind action="Click" button="Up">
  547. <action name="if">
  548. <shaded>no</shaded>
  549. <then>
  550. <action name="Shade"/>
  551. <action name="FocusToBottom"/>
  552. <action name="Unfocus"/>
  553. <action name="Lower"/>
  554. </then>
  555. </action>
  556. </mousebind>
  557. <mousebind action="Click" button="Down">
  558. <action name="if">
  559. <shaded>yes</shaded>
  560. <then>
  561. <action name="Unshade"/>
  562. <action name="Raise"/>
  563. </then>
  564. </action>
  565. </mousebind>
  566. <mousebind action="Press" button="Right">
  567. <action name="Focus"/>
  568. <action name="Raise"/>
  569. <action name="ShowMenu">
  570. <menu>client-menu</menu>
  571. </action>
  572. </mousebind>
  573. </context>
  574. <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  575. <mousebind action="Press" button="Left">
  576. <action name="Focus"/>
  577. <action name="Raise"/>
  578. <action name="Unshade"/>
  579. </mousebind>
  580. <mousebind action="Press" button="Right">
  581. <action name="Focus"/>
  582. <action name="Raise"/>
  583. <action name="ShowMenu">
  584. <menu>client-menu</menu>
  585. </action>
  586. </mousebind>
  587. </context>
  588. <context name="Top">
  589. <mousebind action="Press" button="Left">
  590. <action name="Focus"/>
  591. <action name="Raise"/>
  592. <action name="Unshade"/>
  593. </mousebind>
  594. <mousebind action="Drag" button="Left">
  595. <action name="Resize">
  596. <edge>top</edge>
  597. </action>
  598. </mousebind>
  599. </context>
  600. <context name="Left">
  601. <mousebind action="Press" button="Left">
  602. <action name="Focus"/>
  603. <action name="Raise"/>
  604. </mousebind>
  605. <mousebind action="Drag" button="Left">
  606. <action name="Resize">
  607. <edge>left</edge>
  608. </action>
  609. </mousebind>
  610. </context>
  611. <context name="Right">
  612. <mousebind action="Press" button="Left">
  613. <action name="Focus"/>
  614. <action name="Raise"/>
  615. </mousebind>
  616. <mousebind action="Drag" button="Left">
  617. <action name="Resize">
  618. <edge>right</edge>
  619. </action>
  620. </mousebind>
  621. </context>
  622. <context name="Bottom">
  623. <mousebind action="Press" button="Left">
  624. <action name="Focus"/>
  625. <action name="Raise"/>
  626. </mousebind>
  627. <mousebind action="Drag" button="Left">
  628. <action name="Resize">
  629. <edge>bottom</edge>
  630. </action>
  631. </mousebind>
  632. </context>
  633. <context name="TRCorner BRCorner TLCorner BLCorner">
  634. <mousebind action="Press" button="Left">
  635. <action name="Focus"/>
  636. <action name="Raise"/>
  637. <action name="Unshade"/>
  638. </mousebind>
  639. <mousebind action="Drag" button="Left">
  640. <action name="Resize"/>
  641. </mousebind>
  642. </context>
  643. <context name="Client">
  644. <mousebind action="Press" button="A-Left">
  645. <action name="Focus"/>
  646. <action name="Raise"/>
  647. </mousebind>
  648. <mousebind action="Drag" button="A-Left">
  649. <action name="Move"/>
  650. </mousebind>
  651. <mousebind action="Press" button="Left">
  652. <action name="Focus"/>
  653. <action name="Raise"/>
  654. </mousebind>
  655. <mousebind action="Press" button="Right">
  656. <action name="Focus"/>
  657. <action name="Raise"/>
  658. </mousebind>
  659. </context>
  660. <context name="Icon">
  661. <mousebind action="Press" button="Right">
  662. <action name="Focus"/>
  663. <action name="Raise"/>
  664. <action name="Unshade"/>
  665. <action name="ShowMenu">
  666. <menu>client-menu</menu>
  667. </action>
  668. </mousebind>
  669. </context>
  670. <context name="AllDesktops">
  671. <mousebind action="Click" button="Left">
  672. <action name="ToggleOmnipresent"/>
  673. </mousebind>
  674. </context>
  675. <context name="Shade">
  676. <mousebind action="Click" button="Left">
  677. <action name="ToggleShade"/>
  678. </mousebind>
  679. </context>
  680. <context name="Iconify">
  681. <mousebind action="Click" button="Left">
  682. <action name="Iconify"/>
  683. </mousebind>
  684. </context>
  685. <context name="Maximize">
  686. <mousebind action="Press" button="Left">
  687. <action name="Focus"/>
  688. <action name="Raise"/>
  689. <action name="Unshade"/>
  690. </mousebind>
  691. <mousebind action="Press" button="Right">
  692. <action name="Focus"/>
  693. <action name="Raise"/>
  694. <action name="Unshade"/>
  695. </mousebind>
  696. <mousebind action="Click" button="Left">
  697. <action name="ToggleMaximize"/>
  698. </mousebind>
  699. <mousebind action="Click" button="Right">
  700. <action name="ToggleMaximize">
  701. <direction>horizontal</direction>
  702. </action>
  703. </mousebind>
  704. </context>
  705. <context name="Close">
  706. <mousebind action="Click" button="Left">
  707. <action name="Close"/>
  708. </mousebind>
  709. </context>
  710. <context name="Desktop">
  711. <mousebind action="Click" button="Left">
  712. <action name="Focus"/>
  713. </mousebind>
  714. <mousebind action="Click" button="A-Up">
  715. <action name="GoToDesktop">
  716. <to>previous</to>
  717. </action>
  718. </mousebind>
  719. <mousebind action="Click" button="A-Down">
  720. <action name="GoToDesktop">
  721. <to>next</to>
  722. </action>
  723. </mousebind>
  724. </context>
  725. <context name="Root">
  726. <mousebind action="Press" button="Middle">
  727. <action name="ShowMenu">
  728. <menu>client-list-combined-menu</menu>
  729. </action>
  730. </mousebind>
  731. <mousebind action="Press" button="A-Right">
  732. <action name="ShowMenu">
  733. <menu>client-list-combined-menu</menu>
  734. </action>
  735. </mousebind>
  736. <mousebind action="Press" button="Right">
  737. <action name="ShowMenu">
  738. <menu>root-menu</menu>
  739. </action>
  740. </mousebind>
  741. </context>
  742. </mouse>
  743. <menu>
  744. <file>menu.xml</file>
  745. <hideDelay>400</hideDelay>
  746. <middle>no</middle>
  747. <submenuShowDelay>100</submenuShowDelay>
  748. <submenuHideDelay>200</submenuHideDelay>
  749. <applicationIcons>no</applicationIcons>
  750. <manageDesktops>yes</manageDesktops>
  751. </menu>
  752. <applications>
  753. <application name="oblogout">
  754. <position force="no">
  755. <monitor>1</monitor>
  756. </position>
  757. <fullscreen>yes</fullscreen>
  758. </application>
  759. <application name="obconf">
  760. <position force="no">
  761. <x>0%</x>
  762. <y>0%</y>
  763. <monitor>1</monitor>
  764. </position>
  765. <size>
  766. <width>50%</width>
  767. <height>50%</height>
  768. </size>
  769. </application>
  770. <!--
  771. # this is an example with comments through out. use these to make your
  772. # own rules, but without the comments of course.
  773. # you may use one or more of the name/class/role/title/type rules to specify
  774. # windows to match
  775. <application name="the window's _OB_APP_NAME property (see obxprop)"
  776. class="the window's _OB_APP_CLASS property (see obxprop)"
  777. groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
  778. groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
  779. role="the window's _OB_APP_ROLE property (see obxprop)"
  780. title="the window's _OB_APP_TITLE property (see obxprop)"
  781. type="the window's _OB_APP_TYPE property (see obxprob)..
  782. (if unspecified, then it is 'dialog' for child windows)">
  783. # you may set only one of name/class/role/title/type, or you may use more
  784. # than one together to restrict your matches.
  785. # the name, class, role, and title use simple wildcard matching such as those
  786. # used by a shell. you can use * to match any characters and ? to match
  787. # any single character.
  788. # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  789. # or desktop
  790. # when multiple rules match a window, they will all be applied, in the
  791. # order that they appear in this list
  792. # each rule element can be left out or set to 'default' to specify to not
  793. # change that attribute of the window
  794. <decor>yes</decor>
  795. # enable or disable window decorations
  796. <shade>no</shade>
  797. # make the window shaded when it appears, or not
  798. <position force="no">
  799. # the position is only used if both an x and y coordinate are provided
  800. # (and not set to 'default')
  801. # when force is "yes", then the window will be placed here even if it
  802. # says you want it placed elsewhere. this is to override buggy
  803. # applications who refuse to behave
  804. <x>center</x>
  805. # a number like 50, or 'center' to center on screen. use a negative number
  806. # to start from the right (or bottom for <y>), ie -50 is 50 pixels from
  807. # the right edge (or bottom). use 'default' to specify using value
  808. # provided by the application, or chosen by openbox, instead.
  809. <y>200</y>
  810. <monitor>1</monitor>
  811. # specifies the monitor in a xinerama setup.
  812. # 1 is the first head, or 'mouse' for wherever the mouse is
  813. </position>
  814. <size>
  815. # the size to make the window.
  816. <width>20</width>
  817. # a number like 20, or 'default' to use the size given by the application.
  818. # you can use fractions such as 1/2 or percentages such as 75% in which
  819. # case the value is relative to the size of the monitor that the window
  820. # appears on.
  821. <height>30%</height>
  822. </size>
  823. <focus>yes</focus>
  824. # if the window should try be given focus when it appears. if this is set
  825. # to yes it doesn't guarantee the window will be given focus. some
  826. # restrictions may apply, but Openbox will try to
  827. <desktop>1</desktop>
  828. # 1 is the first desktop, 'all' for all desktops
  829. <layer>normal</layer>
  830. # 'above', 'normal', or 'below'
  831. <iconic>no</iconic>
  832. # make the window iconified when it appears, or not
  833. <skip_pager>no</skip_pager>
  834. # asks to not be shown in pagers
  835. <skip_taskbar>no</skip_taskbar>
  836. # asks to not be shown in taskbars. window cycling actions will also
  837. # skip past such windows
  838. <fullscreen>yes</fullscreen>
  839. # make the window in fullscreen mode when it appears
  840. <maximized>true</maximized>
  841. # 'Horizontal', 'Vertical' or boolean (yes/no)
  842. </application>
  843. # end of the example
  844. -->
  845. </applications>
  846. </openbox_config>
  847. <!-- vim:sw=2
  848. -->