openbox_rc.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
  3. <resistance>
  4. <strength>10</strength>
  5. <screen_edge_strength>20</screen_edge_strength>
  6. </resistance>
  7. <focus>
  8. <focusNew>yes</focusNew>
  9. <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>Primary</monitor>
  19. <primaryMonitor>1</primaryMonitor>
  20. </placement>
  21. <theme>
  22. <name>Onyx</name>
  23. <titleLayout>NLIMC</titleLayout>
  24. <keepBorder>no</keepBorder>
  25. <animateIconify>no</animateIconify>
  26. <font place="ActiveWindow">
  27. <name>Sans</name>
  28. <size>6</size>
  29. <weight>Bold</weight>
  30. <slant>Normal</slant>
  31. </font>
  32. <font place="InactiveWindow">
  33. <name>Sans</name>
  34. <size>6</size>
  35. <weight>Bold</weight>
  36. <slant>Normal</slant>
  37. </font>
  38. <font place="MenuHeader">
  39. <name>Sans</name>
  40. <size>6</size>
  41. <weight>Normal</weight>
  42. <slant>Normal</slant>
  43. </font>
  44. <font place="MenuItem">
  45. <name>Sans</name>
  46. <size>6</size>
  47. <weight>Normal</weight>
  48. <slant>Normal</slant>
  49. </font>
  50. <font place="ActiveOnScreenDisplay">
  51. <name>Sans</name>
  52. <size>6</size>
  53. <weight>Bold</weight>
  54. <slant>Normal</slant>
  55. </font>
  56. <font place="InactiveOnScreenDisplay">
  57. <name>Sans</name>
  58. <size>6</size>
  59. <weight>Bold</weight>
  60. <slant>Normal</slant>
  61. </font>
  62. </theme>
  63. <desktops>
  64. <number>4</number>
  65. <firstdesk>1</firstdesk>
  66. <names>
  67. <name>lilyterm</name>
  68. <name>netsurf</name>
  69. <name>telegram</name>
  70. <name>clawsmail</name>
  71. </names>
  72. <popupTime>0</popupTime>
  73. </desktops>
  74. <resize>
  75. <drawContents>no</drawContents>
  76. <popupShow>Nonpixel</popupShow>
  77. <popupPosition>Center</popupPosition>
  78. <popupFixedPosition>
  79. <x>10</x>
  80. <y>10</y>
  81. </popupFixedPosition>
  82. </resize>
  83. <margins>
  84. <top>0</top>
  85. <bottom>0</bottom>
  86. <left>0</left>
  87. <right>0</right>
  88. </margins>
  89. <dock>
  90. <position>TopLeft</position>
  91. <floatingX>0</floatingX>
  92. <floatingY>0</floatingY>
  93. <noStrut>no</noStrut>
  94. <stacking>Above</stacking>
  95. <direction>Vertical</direction>
  96. <autoHide>no</autoHide>
  97. <hideDelay>300</hideDelay>
  98. <showDelay>300</showDelay>
  99. <moveButton>Middle</moveButton>
  100. </dock>
  101. <keyboard>
  102. <chainQuitKey>C-g</chainQuitKey>
  103. <keybind key="W-Left">
  104. <action name="GoToDesktop">
  105. <to>left</to>
  106. <wrap>no</wrap>
  107. </action>
  108. </keybind>
  109. <keybind key="W-Right">
  110. <action name="GoToDesktop">
  111. <to>right</to>
  112. <wrap>no</wrap>
  113. </action>
  114. </keybind>
  115. <keybind key="W-1">
  116. <action name="GoToDesktop">
  117. <to>1</to>
  118. <wrap>no</wrap>
  119. </action>
  120. </keybind>
  121. <keybind key="W-2">
  122. <action name="GoToDesktop">
  123. <to>2</to>
  124. <wrap>no</wrap>
  125. </action>
  126. </keybind>
  127. <keybind key="W-3">
  128. <action name="GoToDesktop">
  129. <to>3</to>
  130. <wrap>no</wrap>
  131. </action>
  132. </keybind>
  133. <keybind key="W-4">
  134. <action name="GoToDesktop">
  135. <to>4</to>
  136. <wrap>no</wrap>
  137. </action>
  138. </keybind>
  139. <keybind key="W-F4">
  140. <action name="Close"/>
  141. </keybind>
  142. <keybind key="W-i">
  143. <action name="Iconify"/>
  144. </keybind>
  145. <keybind key="W-d">
  146. <action name="ToggleDecorations"/>
  147. </keybind>
  148. <keybind key="W-F1">
  149. <action name="ShowMenu">
  150. <menu>root-menu</menu>
  151. </action>
  152. </keybind>
  153. <!-- Keybindings for window switching -->
  154. <keybind key="A-Tab">
  155. <action name="NextWindow">
  156. <finalactions>
  157. <action name="Focus"/>
  158. <action name="Raise"/>
  159. <action name="Unshade"/>
  160. </finalactions>
  161. </action>
  162. </keybind>
  163. <keybind key="W-Tab">
  164. <action name="NextWindow">
  165. <finalactions>
  166. <action name="Focus"/>
  167. <action name="Raise"/>
  168. <action name="Unshade"/>
  169. </finalactions>
  170. </action>
  171. </keybind>
  172. <!-- Keybindings for running applications -->
  173. <keybind key="W-r">
  174. <action name="Execute">
  175. <startupnotify>
  176. <enabled>true</enabled>
  177. <name>gmrun</name>
  178. </startupnotify>
  179. <command>gmrun</command>
  180. </action>
  181. </keybind>
  182. <keybind key="A-r">
  183. <action name="Execute">
  184. <startupnotify>
  185. <enabled>true</enabled>
  186. <name>gmrun</name>
  187. </startupnotify>
  188. <command>gmrun</command>
  189. </action>
  190. </keybind>
  191. </keyboard>
  192. <mouse>
  193. <dragThreshold>1</dragThreshold>
  194. <doubleClickTime>500</doubleClickTime>
  195. <screenEdgeWarpTime>0</screenEdgeWarpTime>
  196. <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  197. <context name="Frame">
  198. <mousebind button="A-Left" action="Press">
  199. <action name="Focus"/>
  200. <action name="Raise"/>
  201. </mousebind>
  202. <mousebind button="A-Left" action="Click">
  203. <action name="Unshade"/>
  204. </mousebind>
  205. <mousebind button="A-Left" action="Drag">
  206. <action name="Move"/>
  207. </mousebind>
  208. <mousebind button="A-Right" action="Press">
  209. <action name="Focus"/>
  210. <action name="Raise"/>
  211. <action name="Unshade"/>
  212. </mousebind>
  213. <mousebind button="A-Right" action="Drag">
  214. <action name="Resize"/>
  215. </mousebind>
  216. <mousebind button="A-Middle" action="Press">
  217. <action name="Lower"/>
  218. <action name="FocusToBottom"/>
  219. <action name="Unfocus"/>
  220. </mousebind>
  221. <mousebind button="A-Up" action="Click">
  222. <action name="GoToDesktop">
  223. <to>previous</to>
  224. </action>
  225. </mousebind>
  226. <mousebind button="A-Down" action="Click">
  227. <action name="GoToDesktop">
  228. <to>next</to>
  229. </action>
  230. </mousebind>
  231. <mousebind button="C-A-Up" action="Click">
  232. <action name="GoToDesktop">
  233. <to>previous</to>
  234. </action>
  235. </mousebind>
  236. <mousebind button="C-A-Down" action="Click">
  237. <action name="GoToDesktop">
  238. <to>next</to>
  239. </action>
  240. </mousebind>
  241. <mousebind button="A-S-Up" action="Click">
  242. <action name="SendToDesktop">
  243. <to>previous</to>
  244. </action>
  245. </mousebind>
  246. <mousebind button="A-S-Down" action="Click">
  247. <action name="SendToDesktop">
  248. <to>next</to>
  249. </action>
  250. </mousebind>
  251. </context>
  252. <context name="Titlebar">
  253. <mousebind button="Left" action="Drag">
  254. <action name="Move"/>
  255. </mousebind>
  256. <mousebind button="Left" action="DoubleClick">
  257. <action name="ToggleMaximize"/>
  258. </mousebind>
  259. <mousebind button="Up" action="Click">
  260. <action name="if">
  261. <shaded>no</shaded>
  262. <then>
  263. <action name="Shade"/>
  264. <action name="FocusToBottom"/>
  265. <action name="Unfocus"/>
  266. <action name="Lower"/>
  267. </then>
  268. </action>
  269. </mousebind>
  270. <mousebind button="Down" action="Click">
  271. <action name="if">
  272. <shaded>yes</shaded>
  273. <then>
  274. <action name="Unshade"/>
  275. <action name="Raise"/>
  276. </then>
  277. </action>
  278. </mousebind>
  279. </context>
  280. <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  281. <mousebind button="Left" action="Press">
  282. <action name="Focus"/>
  283. <action name="Raise"/>
  284. <action name="Unshade"/>
  285. </mousebind>
  286. <mousebind button="Middle" action="Press">
  287. <action name="Lower"/>
  288. <action name="FocusToBottom"/>
  289. <action name="Unfocus"/>
  290. </mousebind>
  291. <mousebind button="Right" action="Press">
  292. <action name="Focus"/>
  293. <action name="Raise"/>
  294. <action name="ShowMenu">
  295. <menu>client-menu</menu>
  296. </action>
  297. </mousebind>
  298. </context>
  299. <context name="Top">
  300. <mousebind button="Left" action="Drag">
  301. <action name="Resize">
  302. <edge>top</edge>
  303. </action>
  304. </mousebind>
  305. </context>
  306. <context name="Left">
  307. <mousebind button="Left" action="Drag">
  308. <action name="Resize">
  309. <edge>left</edge>
  310. </action>
  311. </mousebind>
  312. </context>
  313. <context name="Right">
  314. <mousebind button="Left" action="Drag">
  315. <action name="Resize">
  316. <edge>right</edge>
  317. </action>
  318. </mousebind>
  319. </context>
  320. <context name="Bottom">
  321. <mousebind button="Left" action="Drag">
  322. <action name="Resize">
  323. <edge>bottom</edge>
  324. </action>
  325. </mousebind>
  326. <mousebind button="Right" action="Press">
  327. <action name="Focus"/>
  328. <action name="Raise"/>
  329. <action name="ShowMenu">
  330. <menu>client-menu</menu>
  331. </action>
  332. </mousebind>
  333. </context>
  334. <context name="TRCorner BRCorner TLCorner BLCorner">
  335. <mousebind button="Left" action="Press">
  336. <action name="Focus"/>
  337. <action name="Raise"/>
  338. <action name="Unshade"/>
  339. </mousebind>
  340. <mousebind button="Left" action="Drag">
  341. <action name="Resize"/>
  342. </mousebind>
  343. </context>
  344. <context name="Client">
  345. <mousebind button="Left" action="Press">
  346. <action name="Focus"/>
  347. <action name="Raise"/>
  348. </mousebind>
  349. <mousebind button="Middle" action="Press">
  350. <action name="Focus"/>
  351. <action name="Raise"/>
  352. </mousebind>
  353. <mousebind button="Right" action="Press">
  354. <action name="Focus"/>
  355. <action name="Raise"/>
  356. </mousebind>
  357. </context>
  358. <context name="Icon">
  359. <mousebind button="Left" action="Press">
  360. <action name="Focus"/>
  361. <action name="Raise"/>
  362. <action name="Unshade"/>
  363. <action name="ShowMenu">
  364. <menu>client-menu</menu>
  365. </action>
  366. </mousebind>
  367. <mousebind button="Right" action="Press">
  368. <action name="Focus"/>
  369. <action name="Raise"/>
  370. <action name="ShowMenu">
  371. <menu>client-menu</menu>
  372. </action>
  373. </mousebind>
  374. </context>
  375. <context name="AllDesktops">
  376. <mousebind button="Left" action="Press">
  377. <action name="Focus"/>
  378. <action name="Raise"/>
  379. <action name="Unshade"/>
  380. </mousebind>
  381. <mousebind button="Left" action="Click">
  382. <action name="ToggleOmnipresent"/>
  383. </mousebind>
  384. </context>
  385. <context name="Shade">
  386. <mousebind button="Left" action="Press">
  387. <action name="Focus"/>
  388. <action name="Raise"/>
  389. </mousebind>
  390. <mousebind button="Left" action="Click">
  391. <action name="ToggleShade"/>
  392. </mousebind>
  393. </context>
  394. <context name="Iconify">
  395. <mousebind button="Left" action="Press">
  396. <action name="Focus"/>
  397. <action name="Raise"/>
  398. </mousebind>
  399. <mousebind button="Left" action="Click">
  400. <action name="Iconify"/>
  401. </mousebind>
  402. </context>
  403. <context name="Maximize">
  404. <mousebind button="Left" action="Press">
  405. <action name="Focus"/>
  406. <action name="Raise"/>
  407. <action name="Unshade"/>
  408. </mousebind>
  409. <mousebind button="Middle" action="Press">
  410. <action name="Focus"/>
  411. <action name="Raise"/>
  412. <action name="Unshade"/>
  413. </mousebind>
  414. <mousebind button="Right" action="Press">
  415. <action name="Focus"/>
  416. <action name="Raise"/>
  417. <action name="Unshade"/>
  418. </mousebind>
  419. <mousebind button="Left" action="Click">
  420. <action name="ToggleMaximize"/>
  421. </mousebind>
  422. <mousebind button="Middle" action="Click">
  423. <action name="ToggleMaximize">
  424. <direction>vertical</direction>
  425. </action>
  426. </mousebind>
  427. <mousebind button="Right" action="Click">
  428. <action name="ToggleMaximize">
  429. <direction>horizontal</direction>
  430. </action>
  431. </mousebind>
  432. </context>
  433. <context name="Close">
  434. <mousebind button="Left" action="Press">
  435. <action name="Focus"/>
  436. <action name="Raise"/>
  437. <action name="Unshade"/>
  438. </mousebind>
  439. <mousebind button="Left" action="Click">
  440. <action name="Close"/>
  441. </mousebind>
  442. </context>
  443. <context name="Desktop">
  444. <mousebind button="Up" action="Click">
  445. <action name="GoToDesktop">
  446. <to>previous</to>
  447. </action>
  448. </mousebind>
  449. <mousebind button="Down" action="Click">
  450. <action name="GoToDesktop">
  451. <to>next</to>
  452. </action>
  453. </mousebind>
  454. <mousebind button="A-Up" action="Click">
  455. <action name="GoToDesktop">
  456. <to>previous</to>
  457. </action>
  458. </mousebind>
  459. <mousebind button="A-Down" action="Click">
  460. <action name="GoToDesktop">
  461. <to>next</to>
  462. </action>
  463. </mousebind>
  464. <mousebind button="C-A-Up" action="Click">
  465. <action name="GoToDesktop">
  466. <to>previous</to>
  467. </action>
  468. </mousebind>
  469. <mousebind button="C-A-Down" action="Click">
  470. <action name="GoToDesktop">
  471. <to>next</to>
  472. </action>
  473. </mousebind>
  474. <mousebind button="Left" action="Press">
  475. <action name="Focus"/>
  476. <action name="Raise"/>
  477. </mousebind>
  478. <mousebind button="Right" action="Press">
  479. <action name="Focus"/>
  480. <action name="Raise"/>
  481. </mousebind>
  482. </context>
  483. <context name="Root">
  484. <!-- Menus -->
  485. <mousebind button="Middle" action="Press">
  486. <action name="ShowMenu">
  487. <menu>client-list-combined-menu</menu>
  488. </action>
  489. </mousebind>
  490. <mousebind button="Right" action="Press">
  491. <action name="ShowMenu">
  492. <menu>root-menu</menu>
  493. </action>
  494. </mousebind>
  495. </context>
  496. <context name="MoveResize">
  497. <mousebind button="Up" action="Click">
  498. <action name="GoToDesktop">
  499. <to>previous</to>
  500. </action>
  501. </mousebind>
  502. <mousebind button="Down" action="Click">
  503. <action name="GoToDesktop">
  504. <to>next</to>
  505. </action>
  506. </mousebind>
  507. <mousebind button="A-Up" action="Click">
  508. <action name="GoToDesktop">
  509. <to>previous</to>
  510. </action>
  511. </mousebind>
  512. <mousebind button="A-Down" action="Click">
  513. <action name="GoToDesktop">
  514. <to>next</to>
  515. </action>
  516. </mousebind>
  517. </context>
  518. </mouse>
  519. <menu>
  520. <file>/var/lib/openbox/debian-menu.xml</file>
  521. <file>menu.xml</file>
  522. <hideDelay>200</hideDelay>
  523. <middle>no</middle>
  524. <submenuShowDelay>100</submenuShowDelay>
  525. <submenuHideDelay>400</submenuHideDelay>
  526. <showIcons>yes</showIcons>
  527. <manageDesktops>yes</manageDesktops>
  528. </menu>
  529. <applications>
  530. <application name="*">
  531. <!-- <decor>no</decor> -->
  532. <maximized>true</maximized>
  533. </application>
  534. </applications>
  535. </openbox_config>