rc.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  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>0</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>thicc</name>
  23. <!--
  24. N: window icon
  25. L: window label (AKA title).
  26. I: iconify
  27. M: maximize
  28. C: close
  29. S: shade (roll up/down)
  30. D: omnipresent (on all desktops).
  31. -->
  32. <titleLayout></titleLayout>
  33. <cornerRadius>0</cornerRadius>
  34. <keepBorder>yes</keepBorder>
  35. <animateIconify>no</animateIconify>
  36. </theme>
  37. <desktops>
  38. <number>9</number>
  39. <firstdesk>1</firstdesk>
  40. <names>
  41. <!-- <name>desktop 1</name> -->
  42. </names>
  43. <popupTime>0</popupTime>
  44. </desktops>
  45. <resize>
  46. <drawContents>yes</drawContents>
  47. <popupShow>Nonpixel</popupShow>
  48. <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  49. <popupPosition>Center</popupPosition>
  50. <!-- 'Center', 'Top', or 'Fixed' -->
  51. <popupFixedPosition>
  52. <!-- these are used if popupPosition is set to 'Fixed' -->
  53. <x>10</x>
  54. <!-- positive number for distance from left edge, negative number for
  55. distance from right edge, or 'Center' -->
  56. <y>10</y>
  57. <!-- positive number for distance from top edge, negative number for
  58. distance from bottom edge, or 'Center' -->
  59. </popupFixedPosition>
  60. </resize>
  61. <!-- You can reserve a portion of your screen where windows will not cover when
  62. they are maximized, or when they are initially placed.
  63. Many programs reserve space automatically, but you can use this in other
  64. cases. -->
  65. <margins>
  66. <top>0</top>
  67. <bottom>0</bottom>
  68. <left>0</left>
  69. <right>0</right>
  70. </margins>
  71. <dock>
  72. <position>TopLeft</position>
  73. <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  74. <floatingX>0</floatingX>
  75. <floatingY>0</floatingY>
  76. <noStrut>no</noStrut>
  77. <stacking>Above</stacking>
  78. <!-- 'Above', 'Normal', or 'Below' -->
  79. <direction>Vertical</direction>
  80. <!-- 'Vertical' or 'Horizontal' -->
  81. <autoHide>no</autoHide>
  82. <hideDelay>300</hideDelay>
  83. <!-- in milliseconds (1000 = 1 second) -->
  84. <showDelay>300</showDelay>
  85. <!-- in milliseconds (1000 = 1 second) -->
  86. <moveButton>Middle</moveButton>
  87. <!-- 'Left', 'Middle', 'Right' -->
  88. </dock>
  89. <keyboard>
  90. <!-- goto workspace -->
  91. <keybind key="W-1">
  92. <action name="GoToDesktop">
  93. <to>1</to>
  94. </action>
  95. </keybind>
  96. <keybind key="W-2">
  97. <action name="GoToDesktop">
  98. <to>2</to>
  99. </action>
  100. </keybind>
  101. <keybind key="W-3">
  102. <action name="GoToDesktop">
  103. <to>3</to>
  104. </action>
  105. </keybind>
  106. <keybind key="W-4">
  107. <action name="GoToDesktop">
  108. <to>4</to>
  109. </action>
  110. </keybind>
  111. <keybind key="W-5">
  112. <action name="GoToDesktop">
  113. <to>5</to>
  114. </action>
  115. </keybind>
  116. <keybind key="W-6">
  117. <action name="GoToDesktop">
  118. <to>6</to>
  119. </action>
  120. </keybind>
  121. <keybind key="W-7">
  122. <action name="GoToDesktop">
  123. <to>7</to>
  124. </action>
  125. </keybind>
  126. <keybind key="W-8">
  127. <action name="GoToDesktop">
  128. <to>8</to>
  129. </action>
  130. </keybind>
  131. <keybind key="W-9">
  132. <action name="GoToDesktop">
  133. <to>9</to>
  134. </action>
  135. </keybind>
  136. <keybind key="W-0">
  137. <action name="GoToDesktop">
  138. <to>0</to>
  139. </action>
  140. </keybind>
  141. <!-- sendto workspace -->
  142. <keybind key="W-S-1">
  143. <action name="SendToDesktop">
  144. <to>1</to>
  145. <wrap>no</wrap>
  146. <follow>no</follow>
  147. </action>
  148. </keybind>
  149. <keybind key="W-S-2">
  150. <action name="SendToDesktop">
  151. <to>2</to>
  152. <wrap>no</wrap>
  153. <follow>no</follow>
  154. </action>
  155. </keybind>
  156. <keybind key="W-S-3">
  157. <action name="SendToDesktop">
  158. <to>3</to>
  159. <wrap>no</wrap>
  160. <follow>no</follow>
  161. </action>
  162. </keybind>
  163. <keybind key="W-S-4">
  164. <action name="SendToDesktop">
  165. <to>4</to>
  166. <wrap>no</wrap>
  167. <follow>no</follow>
  168. </action>
  169. </keybind>
  170. <keybind key="W-S-5">
  171. <action name="SendToDesktop">
  172. <to>5</to>
  173. <wrap>no</wrap>
  174. <follow>no</follow>
  175. </action>
  176. </keybind>
  177. <keybind key="W-S-6">
  178. <action name="SendToDesktop">
  179. <to>6</to>
  180. <wrap>no</wrap>
  181. <follow>no</follow>
  182. </action>
  183. </keybind>
  184. <keybind key="W-S-7">
  185. <action name="SendToDesktop">
  186. <to>7</to>
  187. <wrap>no</wrap>
  188. <follow>no</follow>
  189. </action>
  190. </keybind>
  191. <keybind key="W-S-8">
  192. <action name="SendToDesktop">
  193. <to>8</to>
  194. <wrap>no</wrap>
  195. <follow>no</follow>
  196. </action>
  197. </keybind>
  198. <keybind key="W-S-9">
  199. <action name="SendToDesktop">
  200. <to>9</to>
  201. <wrap>no</wrap>
  202. <follow>no</follow>
  203. </action>
  204. </keybind>
  205. <keybind key="W-S-0">
  206. <action name="SendToDesktop">
  207. <to>0</to>
  208. <wrap>no</wrap>
  209. <follow>no</follow>
  210. </action>
  211. </keybind>
  212. <!-- manage windows -->
  213. <keybind key="A-space">
  214. <action name="Execute">
  215. <command>rofi -m 0 -show run</command>
  216. </action>
  217. </keybind>
  218. <keybind key="W-S-Q">
  219. <action name="Close"/>
  220. </keybind>
  221. <keybind key="W-space">
  222. <action name="Raise"/>
  223. <action name="ToggleMaximize"/>
  224. </keybind>
  225. <keybind key="W-m">
  226. <action name="ShowMenu"/>
  227. </keybind>
  228. <!-- screenshots -->
  229. <keybind key="S-Print">
  230. <!-- of current window -->
  231. <action name="Execute">
  232. <command>screenshot-window</command>
  233. </action>
  234. </keybind>
  235. <keybind key="Print">
  236. <!-- of area -->
  237. <action name="Execute">
  238. <command>screenshot-area</command>
  239. </action>
  240. </keybind>
  241. <keybind key="W-Print">
  242. <!-- color picker -->
  243. <action name="Execute">
  244. <command>color-picker</command>
  245. </action>
  246. </keybind>
  247. </keyboard>
  248. <mouse>
  249. <dragThreshold>1</dragThreshold>
  250. <!-- number of pixels the mouse must move before a drag begins -->
  251. <doubleClickTime>500</doubleClickTime>
  252. <!-- in milliseconds (1000 = 1 second) -->
  253. <screenEdgeWarpTime>0</screenEdgeWarpTime>
  254. <!-- Time before changing desktops when the pointer touches the edge of the
  255. screen while moving a window, in milliseconds (1000 = 1 second).
  256. Set this to 0 to disable warping -->
  257. <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  258. <!-- Set this to TRUE to move the mouse pointer across the desktop when
  259. switching due to hitting the edge of the screen -->
  260. <context name="Frame">
  261. <mousebind button="A-Left" action="Press">
  262. <action name="Focus"/>
  263. <action name="Raise"/>
  264. </mousebind>
  265. <mousebind button="A-Left" action="Click">
  266. <action name="Unshade"/>
  267. </mousebind>
  268. <mousebind button="A-Left" action="Drag">
  269. <action name="Move"/>
  270. </mousebind>
  271. <mousebind button="A-Right" action="Press">
  272. <action name="Focus"/>
  273. <action name="Raise"/>
  274. <action name="Unshade"/>
  275. </mousebind>
  276. <mousebind button="A-Right" action="Drag">
  277. <action name="Resize"/>
  278. </mousebind>
  279. <mousebind button="A-Middle" action="Press">
  280. <action name="Lower"/>
  281. <action name="FocusToBottom"/>
  282. <action name="Unfocus"/>
  283. </mousebind>
  284. <mousebind button="A-Up" action="Click">
  285. <action name="GoToDesktop">
  286. <to>previous</to>
  287. </action>
  288. </mousebind>
  289. <mousebind button="A-Down" action="Click">
  290. <action name="GoToDesktop">
  291. <to>next</to>
  292. </action>
  293. </mousebind>
  294. <mousebind button="C-A-Up" action="Click">
  295. <action name="GoToDesktop">
  296. <to>previous</to>
  297. </action>
  298. </mousebind>
  299. <mousebind button="C-A-Down" action="Click">
  300. <action name="GoToDesktop">
  301. <to>next</to>
  302. </action>
  303. </mousebind>
  304. <mousebind button="A-S-Up" action="Click">
  305. <action name="SendToDesktop">
  306. <to>previous</to>
  307. </action>
  308. </mousebind>
  309. <mousebind button="A-S-Down" action="Click">
  310. <action name="SendToDesktop">
  311. <to>next</to>
  312. </action>
  313. </mousebind>
  314. </context>
  315. <context name="Titlebar">
  316. <mousebind button="Left" action="Drag">
  317. <action name="Move"/>
  318. </mousebind>
  319. <mousebind button="Left" action="DoubleClick">
  320. <action name="ToggleMaximize"/>
  321. <action name="Unshade"/>
  322. </mousebind>
  323. <mousebind button="Up" action="Click">
  324. <action name="if">
  325. <shaded>no</shaded>
  326. <then>
  327. <action name="Shade"/>
  328. <action name="FocusToBottom"/>
  329. <action name="Unfocus"/>
  330. <action name="Lower"/>
  331. </then>
  332. </action>
  333. </mousebind>
  334. <mousebind button="Down" action="Click">
  335. <action name="if">
  336. <shaded>yes</shaded>
  337. <then>
  338. <action name="Unshade"/>
  339. <action name="Raise"/>
  340. </then>
  341. </action>
  342. </mousebind>
  343. </context>
  344. <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  345. <mousebind button="Left" action="Press">
  346. <action name="Focus"/>
  347. <!--<action name="Raise"/>-->
  348. <!--<action name="Unshade"/>-->
  349. </mousebind>
  350. <mousebind button="Middle" action="Press">
  351. <action name="Lower"/>
  352. <action name="FocusToBottom"/>
  353. <action name="Unfocus"/>
  354. </mousebind>
  355. <!--
  356. <mousebind button="Right" action="Press">
  357. <action name="Focus"/>
  358. <action name="Raise"/>
  359. <action name="ShowMenu">
  360. <menu>client-menu</menu>
  361. </action>
  362. </mousebind>
  363. -->
  364. </context>
  365. <context name="Top">
  366. <mousebind button="Left" action="Drag">
  367. <action name="Resize">
  368. <edge>top</edge>
  369. </action>
  370. </mousebind>
  371. </context>
  372. <context name="Left">
  373. <mousebind button="Left" action="Drag">
  374. <action name="Resize">
  375. <edge>left</edge>
  376. </action>
  377. </mousebind>
  378. </context>
  379. <context name="Right">
  380. <mousebind button="Left" action="Drag">
  381. <action name="Resize">
  382. <edge>right</edge>
  383. </action>
  384. </mousebind>
  385. </context>
  386. <context name="Bottom">
  387. <mousebind button="Left" action="Drag">
  388. <action name="Resize">
  389. <edge>bottom</edge>
  390. </action>
  391. </mousebind>
  392. <mousebind button="Right" action="Press">
  393. <action name="Focus"/>
  394. <action name="Raise"/>
  395. <action name="ShowMenu">
  396. <menu>client-menu</menu>
  397. </action>
  398. </mousebind>
  399. </context>
  400. <context name="TRCorner BRCorner TLCorner BLCorner">
  401. <mousebind button="Left" action="Press">
  402. <action name="Focus"/>
  403. <action name="Raise"/>
  404. <action name="Unshade"/>
  405. </mousebind>
  406. <mousebind button="Left" action="Drag">
  407. <action name="Resize"/>
  408. </mousebind>
  409. </context>
  410. <context name="Client">
  411. <mousebind button="Left" action="Press">
  412. <action name="Focus"/>
  413. </mousebind>
  414. <mousebind button="Middle" action="Press">
  415. <action name="Focus"/>
  416. </mousebind>
  417. <mousebind button="Right" action="Press">
  418. <action name="Focus"/>
  419. </mousebind>
  420. </context>
  421. <context name="Icon">
  422. <mousebind button="Left" action="Press">
  423. <action name="Focus"/>
  424. <action name="Raise"/>
  425. <action name="Unshade"/>
  426. <action name="ShowMenu">
  427. <menu>client-menu</menu>
  428. </action>
  429. </mousebind>
  430. <mousebind button="Right" action="Press">
  431. <action name="Focus"/>
  432. <action name="Raise"/>
  433. <action name="ShowMenu">
  434. <menu>client-menu</menu>
  435. </action>
  436. </mousebind>
  437. </context>
  438. <context name="AllDesktops">
  439. <mousebind button="Left" action="Press">
  440. <action name="Focus"/>
  441. <action name="Raise"/>
  442. <action name="Unshade"/>
  443. </mousebind>
  444. <mousebind button="Left" action="Click">
  445. <action name="ToggleOmnipresent"/>
  446. </mousebind>
  447. </context>
  448. <context name="Shade">
  449. <mousebind button="Left" action="Press">
  450. <action name="Focus"/>
  451. <action name="Raise"/>
  452. </mousebind>
  453. <mousebind button="Left" action="Click">
  454. <action name="ToggleShade"/>
  455. </mousebind>
  456. </context>
  457. <context name="Iconify">
  458. <mousebind button="Left" action="Press">
  459. <action name="Focus"/>
  460. <action name="Raise"/>
  461. </mousebind>
  462. <mousebind button="Left" action="Click">
  463. <action name="Iconify"/>
  464. </mousebind>
  465. </context>
  466. <context name="Maximize">
  467. <mousebind button="Left" action="Press">
  468. <action name="Focus"/>
  469. <action name="Raise"/>
  470. <action name="Unshade"/>
  471. </mousebind>
  472. <mousebind button="Middle" action="Press">
  473. <action name="Focus"/>
  474. <action name="Raise"/>
  475. <action name="Unshade"/>
  476. </mousebind>
  477. <mousebind button="Right" action="Press">
  478. <action name="Focus"/>
  479. <action name="Raise"/>
  480. <action name="Unshade"/>
  481. </mousebind>
  482. <mousebind button="Left" action="Click">
  483. <action name="ToggleMaximize"/>
  484. </mousebind>
  485. <mousebind button="Middle" action="Click">
  486. <action name="ToggleMaximize">
  487. <direction>vertical</direction>
  488. </action>
  489. </mousebind>
  490. <mousebind button="Right" action="Click">
  491. <action name="ToggleMaximize">
  492. <direction>horizontal</direction>
  493. </action>
  494. </mousebind>
  495. </context>
  496. <context name="Close">
  497. <mousebind button="Left" action="Press">
  498. <action name="Focus"/>
  499. <action name="Raise"/>
  500. <action name="Unshade"/>
  501. </mousebind>
  502. <mousebind button="Left" action="Click">
  503. <action name="Close"/>
  504. </mousebind>
  505. </context>
  506. <context name="Desktop">
  507. <mousebind button="Up" action="Click">
  508. <action name="GoToDesktop">
  509. <to>previous</to>
  510. </action>
  511. </mousebind>
  512. <mousebind button="Down" action="Click">
  513. <action name="GoToDesktop">
  514. <to>next</to>
  515. </action>
  516. </mousebind>
  517. <mousebind button="A-Up" action="Click">
  518. <action name="GoToDesktop">
  519. <to>previous</to>
  520. </action>
  521. </mousebind>
  522. <mousebind button="A-Down" action="Click">
  523. <action name="GoToDesktop">
  524. <to>next</to>
  525. </action>
  526. </mousebind>
  527. <mousebind button="C-A-Up" action="Click">
  528. <action name="GoToDesktop">
  529. <to>previous</to>
  530. </action>
  531. </mousebind>
  532. <mousebind button="C-A-Down" action="Click">
  533. <action name="GoToDesktop">
  534. <to>next</to>
  535. </action>
  536. </mousebind>
  537. <mousebind button="Left" action="Press">
  538. <action name="Focus"/>
  539. <action name="Raise"/>
  540. </mousebind>
  541. <mousebind button="Right" action="Press">
  542. <action name="Focus"/>
  543. <action name="Raise"/>
  544. </mousebind>
  545. </context>
  546. </mouse>
  547. <applications>
  548. <application name="*">
  549. <decor>no</decor>
  550. </application>
  551. <application name="feh">
  552. <desktop>all</desktop>
  553. </application>
  554. <application name="kitten1">
  555. <desktop>all</desktop>
  556. <position force="yes">
  557. <monitor>1</monitor>
  558. <x>80</x>
  559. <y>-420</y>
  560. </position>
  561. <size>
  562. <width>670</width>
  563. <height>298</height>
  564. </size>
  565. </application>
  566. <application name="kitten2">
  567. <desktop>all</desktop>
  568. <position force="yes">
  569. <monitor>1</monitor>
  570. <x>140</x>
  571. <y>-80</y>
  572. </position>
  573. <size>
  574. <width>610</width>
  575. <height>298</height>
  576. </size>
  577. </application>
  578. <!-- monitor L changable -->
  579. <application name="sublime_text">
  580. <desktop>1</desktop>
  581. <position force="yes">
  582. <monitor>1</monitor>
  583. <x>-80</x>
  584. <y>80</y>
  585. </position>
  586. <size>
  587. <width>1048</width>
  588. <height>920</height>
  589. </size>
  590. </application>
  591. <application name="atom">
  592. <desktop>1</desktop>
  593. <position force="yes">
  594. <monitor>1</monitor>
  595. <x>-80</x>
  596. <y>80</y>
  597. </position>
  598. <size>
  599. <width>1048</width>
  600. <height>920</height>
  601. </size>
  602. </application>
  603. <application name="discord">
  604. <desktop>2</desktop>
  605. <position force="yes">
  606. <monitor>1</monitor>
  607. <x>-80</x>
  608. <y>80</y>
  609. </position>
  610. <size>
  611. <width>1048</width>
  612. <height>920</height>
  613. </size>
  614. </application>
  615. <!-- monitor R changeable -->
  616. <application class="Firefox Developer Edition">
  617. <desktop>1</desktop>
  618. <position force="yes">
  619. <monitor>2</monitor>
  620. <x>80</x>
  621. <y>80</y>
  622. </position>
  623. <size>
  624. <width>1840</width>
  625. <height>920</height>
  626. </size>
  627. </application>
  628. </applications>
  629. </openbox_config>