rc.xml 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Do not edit this file, it will be overwritten on install.
  3. Copy the file to $HOME/.config/openbox/ instead. -->
  4. <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <resistance>
  6. <strength>10</strength>
  7. <screen_edge_strength>20</screen_edge_strength>
  8. </resistance>
  9. <focus>
  10. <focusNew>yes</focusNew>
  11. <!-- always try to focus new windows when they appear. other rules do
  12. apply -->
  13. <followMouse>no</followMouse>
  14. <!-- move focus to a window when you move the mouse into it -->
  15. <focusLast>yes</focusLast>
  16. <!-- focus the last used window when changing desktops, instead of the one
  17. under the mouse pointer. when followMouse is enabled -->
  18. <underMouse>no</underMouse>
  19. <!-- move focus under the mouse, even when the mouse is not moving -->
  20. <focusDelay>200</focusDelay>
  21. <!-- when followMouse is enabled, the mouse must be inside the window for
  22. this many milliseconds (1000 = 1 sec) before moving focus to it -->
  23. <raiseOnFocus>no</raiseOnFocus>
  24. <!-- when followMouse is enabled, and a window is given focus by moving the
  25. mouse into it, also raise the window -->
  26. </focus>
  27. <placement>
  28. <policy>Smart</policy>
  29. <!-- 'Smart' or 'UnderMouse' -->
  30. <center>yes</center>
  31. <!-- whether to place windows in the center of the free area found or
  32. the top left corner -->
  33. <monitor>Primary</monitor>
  34. <!-- with Smart placement on a multi-monitor system, try to place new windows
  35. on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
  36. the active window is, 'Primary' - only on the primary monitor -->
  37. <primaryMonitor>Mouse</primaryMonitor>
  38. <!-- The monitor where Openbox should place popup dialogs such as the
  39. focus cycling popup, or the desktop switch popup. It can be an index
  40. from 1, specifying a particular monitor. Or it can be one of the
  41. following: 'Mouse' - where the mouse is, or
  42. 'Active' - where the active window is -->
  43. </placement>
  44. <theme>
  45. <name>Leve-Cyan</name>
  46. <titleLayout>CNLIM</titleLayout>
  47. <!--
  48. available characters are NDSLIMC, each can occur at most once.
  49. N: window icon
  50. L: window label (AKA title).
  51. I: iconify
  52. M: maximize
  53. C: close
  54. S: shade (roll up/down)
  55. D: omnipresent (on all desktops).
  56. -->
  57. <!--Включить скругление углов:
  58. <roundCorners>yes</roundCorners>
  59. <invisibleHandles>yes</invisibleHandles>
  60. <cornerRadius>9</cornerRadius> -->
  61. <keepBorder>yes</keepBorder>
  62. <animateIconify>yes</animateIconify>
  63. <font place="ActiveWindow">
  64. <name>Tahoma</name>
  65. <size>9</size>
  66. <!-- font size in points -->
  67. <weight>Bold</weight>
  68. <!-- 'bold' or 'normal' -->
  69. <slant>Normal</slant>
  70. <!-- 'italic' or 'normal' -->
  71. </font>
  72. <font place="InactiveWindow">
  73. <name>Tahoma</name>
  74. <size>9</size>
  75. <!-- font size in points -->
  76. <weight>Bold</weight>
  77. <!-- 'bold' or 'normal' -->
  78. <slant>Normal</slant>
  79. <!-- 'italic' or 'normal' -->
  80. </font>
  81. <font place="MenuHeader">
  82. <name>Tahoma</name>
  83. <size>9</size>
  84. <!-- font size in points -->
  85. <weight>Normal</weight>
  86. <!-- 'bold' or 'normal' -->
  87. <slant>Normal</slant>
  88. <!-- 'italic' or 'normal' -->
  89. </font>
  90. <font place="MenuItem">
  91. <name>terminus</name>
  92. <size>12</size>
  93. <!-- font size in points -->
  94. <weight>normal</weight>
  95. <!-- 'bold' or 'normal' -->
  96. <slant>normal</slant>
  97. <!-- 'italic' or 'normal' -->
  98. </font>
  99. <font place="ActiveOnScreenDisplay">
  100. <name>Tahoma</name>
  101. <size>10</size>
  102. <!-- font size in points -->
  103. <weight>Bold</weight>
  104. <!-- 'bold' or 'normal' -->
  105. <slant>Normal</slant>
  106. <!-- 'italic' or 'normal' -->
  107. </font>
  108. <font place="InactiveOnScreenDisplay">
  109. <name>Tahoma</name>
  110. <size>10</size>
  111. <!-- font size in points -->
  112. <weight>Bold</weight>
  113. <!-- 'bold' or 'normal' -->
  114. <slant>Normal</slant>
  115. <!-- 'italic' or 'normal' -->
  116. </font>
  117. </theme>
  118. <desktops>
  119. <!-- this stuff is only used at startup, pagers allow you to change them
  120. during a session
  121. these are default values to use when other ones are not already set
  122. by other applications, or saved in your session
  123. use obconf if you want to change these without having to log out
  124. and back in -->
  125. <number>3</number>
  126. <firstdesk>1</firstdesk>
  127. <names>
  128. <name>1</name>
  129. <name>2</name>
  130. <name>3</name>
  131. </names>
  132. <popupTime>875</popupTime>
  133. <!-- The number of milliseconds to show the popup for when switching
  134. desktops. Set this to 0 to disable the popup. -->
  135. </desktops>
  136. <resize>
  137. <drawContents>yes</drawContents>
  138. <popupShow>Nonpixel</popupShow>
  139. <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  140. <popupPosition>Center</popupPosition>
  141. <!-- 'Center', 'Top', or 'Fixed' -->
  142. <popupFixedPosition>
  143. <!-- these are used if popupPosition is set to 'Fixed' -->
  144. <x>10</x>
  145. <!-- positive number for distance from left edge, negative number for
  146. distance from right edge, or 'Center' -->
  147. <y>10</y>
  148. <!-- positive number for distance from top edge, negative number for
  149. distance from bottom edge, or 'Center' -->
  150. </popupFixedPosition>
  151. </resize>
  152. <!-- You can reserve a portion of your screen where windows will not cover when
  153. they are maximized, or when they are initially placed.
  154. Many programs reserve space automatically, but you can use this in other
  155. cases. -->
  156. <margins>
  157. <top>0</top>
  158. <bottom>0</bottom>
  159. <left>0</left>
  160. <right>0</right>
  161. </margins>
  162. <dock>
  163. <position>TopLeft</position>
  164. <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  165. <floatingX>0</floatingX>
  166. <floatingY>0</floatingY>
  167. <noStrut>no</noStrut>
  168. <stacking>Above</stacking>
  169. <!-- 'Above', 'Normal', or 'Below' -->
  170. <direction>Horizontal</direction>
  171. <!-- 'Vertical' or 'Horizontal' -->
  172. <autoHide>no</autoHide>
  173. <hideDelay>300</hideDelay>
  174. <!-- in milliseconds (1000 = 1 second) -->
  175. <showDelay>300</showDelay>
  176. <!-- in milliseconds (1000 = 1 second) -->
  177. <moveButton>Middle</moveButton>
  178. <!-- 'Left', 'Middle', 'Right' -->
  179. </dock>
  180. <keyboard>
  181. <chainQuitKey>C-g</chainQuitKey>
  182. <!-- Keybindings for desktop switching -->
  183. <keybind key="C-A-Left">
  184. <action name="GoToDesktop">
  185. <to>left</to>
  186. <wrap>no</wrap>
  187. </action>
  188. </keybind>
  189. <keybind key="C-A-Right">
  190. <action name="GoToDesktop">
  191. <to>right</to>
  192. <wrap>no</wrap>
  193. </action>
  194. </keybind>
  195. <keybind key="C-A-Up">
  196. <action name="GoToDesktop">
  197. <to>up</to>
  198. <wrap>no</wrap>
  199. </action>
  200. </keybind>
  201. <keybind key="C-A-Down">
  202. <action name="GoToDesktop">
  203. <to>down</to>
  204. <wrap>no</wrap>
  205. </action>
  206. </keybind>
  207. <keybind key="S-A-Left">
  208. <action name="SendToDesktop">
  209. <to>left</to>
  210. <wrap>no</wrap>
  211. </action>
  212. </keybind>
  213. <keybind key="S-A-Right">
  214. <action name="SendToDesktop">
  215. <to>right</to>
  216. <wrap>no</wrap>
  217. </action>
  218. </keybind>
  219. <keybind key="S-A-Up">
  220. <action name="SendToDesktop">
  221. <to>up</to>
  222. <wrap>no</wrap>
  223. </action>
  224. </keybind>
  225. <keybind key="S-A-Down">
  226. <action name="SendToDesktop">
  227. <to>down</to>
  228. <wrap>no</wrap>
  229. </action>
  230. </keybind>
  231. <keybind key="W-F1">
  232. <action name="GoToDesktop">
  233. <to>1</to>
  234. </action>
  235. </keybind>
  236. <keybind key="W-F2">
  237. <action name="GoToDesktop">
  238. <to>2</to>
  239. </action>
  240. </keybind>
  241. <keybind key="W-F3">
  242. <action name="GoToDesktop">
  243. <to>3</to>
  244. </action>
  245. </keybind>
  246. <keybind key="W-F4">
  247. <action name="GoToDesktop">
  248. <to>4</to>
  249. </action>
  250. </keybind>
  251. <keybind key="W-d">
  252. <action name="ToggleShowDesktop"/>
  253. </keybind>
  254. <!-- Keybindings for windows -->
  255. <keybind key="A-F4">
  256. <action name="Close"/>
  257. </keybind>
  258. <keybind key="A-Escape">
  259. <action name="Lower"/>
  260. <action name="FocusToBottom"/>
  261. <action name="Unfocus"/>
  262. </keybind>
  263. <keybind key="A-space">
  264. <action name="ShowMenu">
  265. <menu>client-menu</menu>
  266. </action>
  267. </keybind>
  268. <!-- Take a screenshot of the current window with scrot when Alt+Print are pressed -->
  269. <keybind key="A-Print">
  270. <action name="Execute">
  271. <command>#</command>
  272. </action>
  273. </keybind>
  274. <!-- Keybindings for window switching ***************************-->
  275. <!-- Закрыть текущее окно -->
  276. <keybind key="W-x">
  277. <action name="Close"/>
  278. </keybind>
  279. <!-- изменить размер текущего окна, чтобы оно занимало все доступное пространство рабочего стола -->
  280. <keybind key="W-m">
  281. <action name="MoveResizeTo">
  282. <x>center</x>
  283. <y>center</y>
  284. <height>100%</height>
  285. <width>100%</width>
  286. </action>
  287. </keybind>
  288. <!-- свернуть (минимизировать) текущее окно -->
  289. <keybind key="W-n">
  290. <action name="Iconify"/>
  291. </keybind>
  292. <!-- <keybind key="C-W-m">
  293. <action name="DirectionalTargetWindow"/>
  294. </keybind> -->
  295. <!-- Свернуть в заголовок -->
  296. <!-- <keybind key="C-W-z">
  297. <action name="ToggleShade"/>
  298. </keybind> -->
  299. <!-- развернуть (максимизировать) текущее окно на весь экран или восстановить его размер, если оно уже развернуто -->
  300. <keybind key="W-space">
  301. <action name="ToggleMaximizeFull"/>
  302. </keybind>
  303. <!-- поместить текущее окно в центр рабочего стола -->
  304. <keybind key="W-c">
  305. <action name="MoveResizeTo">
  306. <x>center</x>
  307. <y>center</y>
  308. </action>
  309. </keybind>
  310. <!-- переместить текущее окно на следующий монитор (конечно, если мониторов несколько -->
  311. <keybind key="W-0x2F">
  312. <action name="MoveResizeTo">
  313. <monitor>next</monitor>
  314. </action>
  315. </keybind>
  316. <!-- изменить размер текущего окна в левую сторону -->
  317. <keybind key="A-h">
  318. <action name="GrowToEdgeWest"/>
  319. </keybind>
  320. <!-- изменить размер текущего окна в правую сторону -->
  321. <keybind key="A-l">
  322. <action name="GrowToEdgeEast"/>
  323. </keybind>
  324. <!-- изменить размер текущего окна в нижнем направлении -->
  325. <keybind key="A-k">
  326. <action name="GrowToEdgeNorth"/>
  327. </keybind>
  328. <!-- изменить размер текущего окна в верхнем направлении -->
  329. <keybind key="A-j">
  330. <action name="GrowToEdgeSouth"/>
  331. </keybind>
  332. <!-- сдвинуть текущее окно влево -->
  333. <keybind key="C-W-h">
  334. <action name="MoveRelative">
  335. <x>-5%</x>
  336. <y>0</y>
  337. </action>
  338. </keybind>
  339. <!-- сдвинуть текущее окно в право -->
  340. <keybind key="C-W-l">
  341. <action name="MoveRelative">
  342. <x>5%</x>
  343. <y>0</y>
  344. </action>
  345. </keybind>
  346. <!-- сдвинуть текущее окно вниз -->
  347. <keybind key="C-W-k">
  348. <action name="MoveRelative">
  349. <x>0</x>
  350. <y>-5%</y>
  351. </action>
  352. </keybind>
  353. <!-- сдвинуть текущее окно вверх -->
  354. <keybind key="C-W-j">
  355. <action name="MoveRelative">
  356. <x>0</x>
  357. <y>5%</y>
  358. </action>
  359. </keybind>
  360. <!-- # -->
  361. <!-- перейти на следующий рабочий стол вместе с текущим окном -->
  362. <keybind key="C-A-k">
  363. <action name="GoToDesktop">
  364. <to>right</to>
  365. </action>
  366. </keybind>
  367. <!-- перейти на предыдущий рабочий стол вместе с текущим окном -->
  368. <keybind key="C-A-j">
  369. <action name="GoToDesktop">
  370. <to>left</to>
  371. </action>
  372. </keybind>
  373. <keybind key="A-Tab">
  374. <action name="NextWindow">
  375. <finalactions>
  376. <action name="Focus"/>
  377. <action name="Raise"/>
  378. <action name="Unshade"/>
  379. </finalactions>
  380. </action>
  381. </keybind>
  382. <keybind key="A-S-Tab">
  383. <action name="PreviousWindow">
  384. <finalactions>
  385. <action name="Focus"/>
  386. <action name="Raise"/>
  387. <action name="Unshade"/>
  388. </finalactions>
  389. </action>
  390. </keybind>
  391. <keybind key="C-A-Tab">
  392. <action name="NextWindow">
  393. <panels>yes</panels>
  394. <desktop>yes</desktop>
  395. <finalactions>
  396. <action name="Focus"/>
  397. <action name="Raise"/>
  398. <action name="Unshade"/>
  399. </finalactions>
  400. </action>
  401. </keybind>
  402. <!-- Keybindings for window switching with the arrow keys -->
  403. <keybind key="W-S-Right">
  404. <action name="DirectionalCycleWindows">
  405. <direction>right</direction>
  406. </action>
  407. </keybind>
  408. <keybind key="W-S-Left">
  409. <action name="DirectionalCycleWindows">
  410. <direction>left</direction>
  411. </action>
  412. </keybind>
  413. <keybind key="W-S-Up">
  414. <action name="DirectionalCycleWindows">
  415. <direction>up</direction>
  416. </action>
  417. </keybind>
  418. <keybind key="W-S-Down">
  419. <action name="DirectionalCycleWindows">
  420. <direction>down</direction>
  421. </action>
  422. </keybind>
  423. <!-- Keybindings for running applications******************** -->
  424. <keybind key="W-Return">
  425. <action name="Execute">
  426. <startupnotify>
  427. <enabled>true</enabled>
  428. <name>Urxvt</name>
  429. </startupnotify>
  430. <command>urxvt</command>
  431. </action>
  432. </keybind>
  433. <keybind key="W-1">
  434. <action name="Execute">
  435. <startupnotify>
  436. <enabled>true</enabled>
  437. <name>thunar</name>
  438. </startupnotify>
  439. <command>thunar</command>
  440. </action>
  441. </keybind>
  442. <keybind key="W-2">
  443. <action name="Execute">
  444. <startupnotify>
  445. <enabled>true</enabled>
  446. <name>Spacefm</name>
  447. </startupnotify>
  448. <command>spacefm</command>
  449. </action>
  450. </keybind>
  451. <keybind key="W-w">
  452. <action name="Execute">
  453. <startupnotify>
  454. <enabled>true</enabled>
  455. <name>firefox-esr</name>
  456. </startupnotify>
  457. <command>firefox-esr</command>
  458. </action>
  459. </keybind>
  460. <keybind key="W-q">
  461. <action name="Execute">
  462. <startupnotify>
  463. <enabled>true</enabled>
  464. <name>DeveloperEditor</name>
  465. </startupnotify>
  466. <command>/home/effir/.firefox_developer_libre/firefox</command>
  467. </action>
  468. </keybind>
  469. <keybind key="W-e">
  470. <action name="Execute">
  471. <startupnotify>
  472. <enabled>true</enabled>
  473. <name>librewolf</name>
  474. </startupnotify>
  475. <command>/home/effir/.librewolf/firefox/firefox</command>
  476. </action>
  477. </keybind>
  478. <keybind key="W-a">
  479. <action name="Execute">
  480. <startupnotify>
  481. <enabled>true</enabled>
  482. <name>qmmp</name>
  483. </startupnotify>
  484. <command>qmmp</command>
  485. </action>
  486. </keybind>
  487. <keybind key="W-o">
  488. <action name="Execute">
  489. <startupnotify>
  490. <enabled>true</enabled>
  491. <name>OpenOffice</name>
  492. </startupnotify>
  493. <command>openoffice</command>
  494. </action>
  495. </keybind>
  496. <keybind key="W-s">
  497. <action name="Execute">
  498. <startupnotify>
  499. <enabled>true</enabled>
  500. <name>Sublime</name>
  501. </startupnotify>
  502. <command>subl</command>
  503. </action>
  504. </keybind>
  505. <keybind key="W-t">
  506. <action name="Execute">
  507. <startupnotify>
  508. <enabled>true</enabled>
  509. <name>Telegram</name>
  510. </startupnotify>
  511. <command>/home/effir/.teleg/Telegram/Telegram</command>
  512. </action>
  513. </keybind>
  514. <!-- Launch scrot when Print is pressed -->
  515. <keybind key="C-Print">
  516. <action name="Execute">
  517. <command>scrot</command>
  518. </action>
  519. </keybind>
  520. <!-- Flameshot Print -->
  521. <keybind key="Print">
  522. <action name="Execute">
  523. <command>scrot -s</command>
  524. </action>
  525. </keybind>
  526. <!-- tilda -->
  527. <keybind key="">
  528. <action name="Execute">
  529. <command>tilda</command>
  530. </action>
  531. </keybind>
  532. <!-- Restart -->
  533. <keybind key="W-r">
  534. <action name="Restart">
  535. <command/>
  536. </action>
  537. </keybind>
  538. </keyboard>
  539. <mouse>
  540. <dragThreshold>1</dragThreshold>
  541. <!-- number of pixels the mouse must move before a drag begins -->
  542. <doubleClickTime>500</doubleClickTime>
  543. <!-- in milliseconds (1000 = 1 second) -->
  544. <screenEdgeWarpTime>400</screenEdgeWarpTime>
  545. <!-- Time before changing desktops when the pointer touches the edge of the
  546. screen while moving a window, in milliseconds (1000 = 1 second).
  547. Set this to 0 to disable warping -->
  548. <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  549. <!-- Set this to TRUE to move the mouse pointer across the desktop when
  550. switching due to hitting the edge of the screen -->
  551. <context name="Frame">
  552. <mousebind button="A-Left" action="Press">
  553. <action name="Focus"/>
  554. <action name="Raise"/>
  555. </mousebind>
  556. <mousebind button="A-Left" action="Click">
  557. <action name="Unshade"/>
  558. </mousebind>
  559. <mousebind button="A-Left" action="Drag">
  560. <action name="Move"/>
  561. </mousebind>
  562. <mousebind button="A-Right" action="Press">
  563. <action name="Focus"/>
  564. <action name="Raise"/>
  565. <action name="Unshade"/>
  566. </mousebind>
  567. <mousebind button="A-Right" action="Drag">
  568. <action name="Resize"/>
  569. </mousebind>
  570. <mousebind button="A-Middle" action="Press">
  571. <action name="Lower"/>
  572. <action name="FocusToBottom"/>
  573. <action name="Unfocus"/>
  574. </mousebind>
  575. <mousebind button="A-Up" action="Click">
  576. <action name="GoToDesktop">
  577. <to>previous</to>
  578. </action>
  579. </mousebind>
  580. <mousebind button="A-Down" action="Click">
  581. <action name="GoToDesktop">
  582. <to>next</to>
  583. </action>
  584. </mousebind>
  585. <mousebind button="C-A-Up" action="Click">
  586. <action name="GoToDesktop">
  587. <to>previous</to>
  588. </action>
  589. </mousebind>
  590. <mousebind button="C-A-Down" action="Click">
  591. <action name="GoToDesktop">
  592. <to>next</to>
  593. </action>
  594. </mousebind>
  595. <mousebind button="A-S-Up" action="Click">
  596. <action name="SendToDesktop">
  597. <to>previous</to>
  598. </action>
  599. </mousebind>
  600. <mousebind button="A-S-Down" action="Click">
  601. <action name="SendToDesktop">
  602. <to>next</to>
  603. </action>
  604. </mousebind>
  605. </context>
  606. <context name="Titlebar">
  607. <mousebind button="Left" action="Drag">
  608. <action name="Move"/>
  609. </mousebind>
  610. <mousebind button="Left" action="DoubleClick">
  611. <action name="ToggleMaximize"/>
  612. </mousebind>
  613. <mousebind button="Up" action="Click">
  614. <action name="if">
  615. <shaded>no</shaded>
  616. <then>
  617. <action name="Shade"/>
  618. <action name="FocusToBottom"/>
  619. <action name="Unfocus"/>
  620. <action name="Lower"/>
  621. </then>
  622. </action>
  623. </mousebind>
  624. <mousebind button="Down" action="Click">
  625. <action name="if">
  626. <shaded>yes</shaded>
  627. <then>
  628. <action name="Unshade"/>
  629. <action name="Raise"/>
  630. </then>
  631. </action>
  632. </mousebind>
  633. </context>
  634. <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  635. <mousebind button="Left" action="Press">
  636. <action name="Focus"/>
  637. <action name="Raise"/>
  638. <action name="Unshade"/>
  639. </mousebind>
  640. <mousebind button="Middle" action="Press">
  641. <action name="Lower"/>
  642. <action name="FocusToBottom"/>
  643. <action name="Unfocus"/>
  644. </mousebind>
  645. <mousebind button="Right" action="Press">
  646. <action name="Focus"/>
  647. <action name="Raise"/>
  648. <action name="ShowMenu">
  649. <menu>client-menu</menu>
  650. </action>
  651. </mousebind>
  652. </context>
  653. <context name="Top">
  654. <mousebind button="Left" action="Drag">
  655. <action name="Resize">
  656. <edge>top</edge>
  657. </action>
  658. </mousebind>
  659. </context>
  660. <context name="Left">
  661. <mousebind button="Left" action="Drag">
  662. <action name="Resize">
  663. <edge>left</edge>
  664. </action>
  665. </mousebind>
  666. </context>
  667. <context name="Right">
  668. <mousebind button="Left" action="Drag">
  669. <action name="Resize">
  670. <edge>right</edge>
  671. </action>
  672. </mousebind>
  673. </context>
  674. <context name="Bottom">
  675. <mousebind button="Left" action="Drag">
  676. <action name="Resize">
  677. <edge>bottom</edge>
  678. </action>
  679. </mousebind>
  680. <mousebind button="Right" action="Press">
  681. <action name="Focus"/>
  682. <action name="Raise"/>
  683. <action name="ShowMenu">
  684. <menu>client-menu</menu>
  685. </action>
  686. </mousebind>
  687. </context>
  688. <context name="TRCorner BRCorner TLCorner BLCorner">
  689. <mousebind button="Left" action="Press">
  690. <action name="Focus"/>
  691. <action name="Raise"/>
  692. <action name="Unshade"/>
  693. </mousebind>
  694. <mousebind button="Left" action="Drag">
  695. <action name="Resize"/>
  696. </mousebind>
  697. </context>
  698. <context name="Client">
  699. <mousebind button="Left" action="Press">
  700. <action name="Focus"/>
  701. <action name="Raise"/>
  702. </mousebind>
  703. <mousebind button="Middle" action="Press">
  704. <action name="Focus"/>
  705. <action name="Raise"/>
  706. </mousebind>
  707. <mousebind button="Right" action="Press">
  708. <action name="Focus"/>
  709. <action name="Raise"/>
  710. </mousebind>
  711. </context>
  712. <context name="Icon">
  713. <mousebind button="Left" action="Press">
  714. <action name="Focus"/>
  715. <action name="Raise"/>
  716. <action name="Unshade"/>
  717. <action name="ShowMenu">
  718. <menu>client-menu</menu>
  719. </action>
  720. </mousebind>
  721. <mousebind button="Right" action="Press">
  722. <action name="Focus"/>
  723. <action name="Raise"/>
  724. <action name="ShowMenu">
  725. <menu>client-menu</menu>
  726. </action>
  727. </mousebind>
  728. </context>
  729. <context name="AllDesktops">
  730. <mousebind button="Left" action="Press">
  731. <action name="Focus"/>
  732. <action name="Raise"/>
  733. <action name="Unshade"/>
  734. </mousebind>
  735. <mousebind button="Left" action="Click">
  736. <action name="ToggleOmnipresent"/>
  737. </mousebind>
  738. </context>
  739. <context name="Shade">
  740. <mousebind button="Left" action="Press">
  741. <action name="Focus"/>
  742. <action name="Raise"/>
  743. </mousebind>
  744. <mousebind button="Left" action="Click">
  745. <action name="ToggleShade"/>
  746. </mousebind>
  747. </context>
  748. <context name="Iconify">
  749. <mousebind button="Left" action="Press">
  750. <action name="Focus"/>
  751. <action name="Raise"/>
  752. </mousebind>
  753. <mousebind button="Left" action="Click">
  754. <action name="Iconify"/>
  755. </mousebind>
  756. </context>
  757. <context name="Maximize">
  758. <mousebind button="Left" action="Press">
  759. <action name="Focus"/>
  760. <action name="Raise"/>
  761. <action name="Unshade"/>
  762. </mousebind>
  763. <mousebind button="Middle" action="Press">
  764. <action name="Focus"/>
  765. <action name="Raise"/>
  766. <action name="Unshade"/>
  767. </mousebind>
  768. <mousebind button="Right" action="Press">
  769. <action name="Focus"/>
  770. <action name="Raise"/>
  771. <action name="Unshade"/>
  772. </mousebind>
  773. <mousebind button="Left" action="Click">
  774. <action name="ToggleMaximize"/>
  775. </mousebind>
  776. <mousebind button="Middle" action="Click">
  777. <action name="ToggleMaximize">
  778. <direction>vertical</direction>
  779. </action>
  780. </mousebind>
  781. <mousebind button="Right" action="Click">
  782. <action name="ToggleMaximize">
  783. <direction>horizontal</direction>
  784. </action>
  785. </mousebind>
  786. </context>
  787. <context name="Close">
  788. <mousebind button="Left" action="Press">
  789. <action name="Focus"/>
  790. <action name="Raise"/>
  791. <action name="Unshade"/>
  792. </mousebind>
  793. <mousebind button="Left" action="Click">
  794. <action name="Close"/>
  795. </mousebind>
  796. </context>
  797. <context name="Desktop">
  798. <mousebind button="Up" action="Click">
  799. <action name="GoToDesktop">
  800. <to>previous</to>
  801. </action>
  802. </mousebind>
  803. <mousebind button="Down" action="Click">
  804. <action name="GoToDesktop">
  805. <to>next</to>
  806. </action>
  807. </mousebind>
  808. <mousebind button="A-Up" action="Click">
  809. <action name="GoToDesktop">
  810. <to>previous</to>
  811. </action>
  812. </mousebind>
  813. <mousebind button="A-Down" action="Click">
  814. <action name="GoToDesktop">
  815. <to>next</to>
  816. </action>
  817. </mousebind>
  818. <mousebind button="C-A-Up" action="Click">
  819. <action name="GoToDesktop">
  820. <to>previous</to>
  821. </action>
  822. </mousebind>
  823. <mousebind button="C-A-Down" action="Click">
  824. <action name="GoToDesktop">
  825. <to>next</to>
  826. </action>
  827. </mousebind>
  828. <mousebind button="Left" action="Press">
  829. <action name="Focus"/>
  830. <action name="Raise"/>
  831. </mousebind>
  832. <mousebind button="Right" action="Press">
  833. <action name="Focus"/>
  834. <action name="Raise"/>
  835. </mousebind>
  836. </context>
  837. <context name="Root">
  838. <!-- Menus -->
  839. <mousebind button="Middle" action="Press">
  840. <action name="ShowMenu">
  841. <menu>client-list-combined-menu</menu>
  842. </action>
  843. </mousebind>
  844. <mousebind button="Right" action="Press">
  845. <action name="ShowMenu">
  846. <menu>root-menu</menu>
  847. </action>
  848. </mousebind>
  849. </context>
  850. <context name="MoveResize">
  851. <mousebind button="Up" action="Click">
  852. <action name="GoToDesktop">
  853. <to>previous</to>
  854. </action>
  855. </mousebind>
  856. <mousebind button="Down" action="Click">
  857. <action name="GoToDesktop">
  858. <to>next</to>
  859. </action>
  860. </mousebind>
  861. <mousebind button="A-Up" action="Click">
  862. <action name="GoToDesktop">
  863. <to>previous</to>
  864. </action>
  865. </mousebind>
  866. <mousebind button="A-Down" action="Click">
  867. <action name="GoToDesktop">
  868. <to>next</to>
  869. </action>
  870. </mousebind>
  871. </context>
  872. </mouse>
  873. <menu>
  874. <!-- You can specify more than one menu file in here and they are all loaded,
  875. just don't make menu ids clash or, well, it'll be kind of pointless -->
  876. <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  877. <!-- system menu files on Debian systems -->
  878. <file>/var/lib/openbox/debian-menu.xml</file>
  879. <file>menu.xml</file>
  880. <hideDelay>200</hideDelay>
  881. <!-- if a press-release lasts longer than this setting (in milliseconds), the
  882. menu is hidden again -->
  883. <middle>no</middle>
  884. <!-- center submenus vertically about the parent entry -->
  885. <submenuShowDelay>100</submenuShowDelay>
  886. <!-- time to delay before showing a submenu after hovering over the parent
  887. entry.
  888. if this is a negative value, then the delay is infinite and the
  889. submenu will not be shown until it is clicked on -->
  890. <submenuHideDelay>400</submenuHideDelay>
  891. <!-- time to delay before hiding a submenu when selecting another
  892. entry in parent menu
  893. if this is a negative value, then the delay is infinite and the
  894. submenu will not be hidden until a different submenu is opened -->
  895. <showIcons>yes</showIcons>
  896. <!-- controls if icons appear in the client-list-(combined-)menu -->
  897. <manageDesktops>yes</manageDesktops>
  898. <!-- show the manage desktops section in the client-list-(combined-)menu -->
  899. </menu>
  900. <applications>
  901. <!-- decoration window -->
  902. <application class="*">
  903. <decor>yes</decor>
  904. </application>
  905. <!--
  906. # this is an example with comments through out. use these to make your
  907. # own rules, but without the comments of course.
  908. # you may use one or more of the name/class/role/title/type rules to specify
  909. # windows to match
  910. <application name="the window's _OB_APP_NAME property (see obxprop)"
  911. class="the window's _OB_APP_CLASS property (see obxprop)"
  912. groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
  913. groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
  914. role="the window's _OB_APP_ROLE property (see obxprop)"
  915. title="the window's _OB_APP_TITLE property (see obxprop)"
  916. type="the window's _OB_APP_TYPE property (see obxprob)..
  917. (if unspecified, then it is 'dialog' for child windows)">
  918. # you may set only one of name/class/role/title/type, or you may use more
  919. # than one together to restrict your matches.
  920. # the name, class, role, and title use simple wildcard matching such as those
  921. # used by a shell. you can use * to match any characters and ? to match
  922. # any single character.
  923. # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
  924. # or desktop
  925. # when multiple rules match a window, they will all be applied, in the
  926. # order that they appear in this list
  927. # each rule element can be left out or set to 'default' to specify to not
  928. # change that attribute of the window
  929. <decor>yes</decor>
  930. # enable or disable window decorations
  931. <shade>no</shade>
  932. # make the window shaded when it appears, or not
  933. <position force="no">
  934. # the position is only used if both an x and y coordinate are provided
  935. # (and not set to 'default')
  936. # when force is "yes", then the window will be placed here even if it
  937. # says you want it placed elsewhere. this is to override buggy
  938. # applications who refuse to behave
  939. <x>center</x>
  940. # a number like 50, or 'center' to center on screen. use a negative number
  941. # to start from the right (or bottom for <y>), ie -50 is 50 pixels from
  942. # the right edge (or bottom). use 'default' to specify using value
  943. # provided by the application, or chosen by openbox, instead.
  944. <y>200</y>
  945. <monitor>1</monitor>
  946. # specifies the monitor in a xinerama setup.
  947. # 1 is the first head, or 'mouse' for wherever the mouse is
  948. </position>
  949. <size>
  950. # the size to make the window.
  951. <width>20</width>
  952. # a number like 20, or 'default' to use the size given by the application.
  953. # you can use fractions such as 1/2 or percentages such as 75% in which
  954. # case the value is relative to the size of the monitor that the window
  955. # appears on.
  956. <height>30%</height>
  957. </size>
  958. <focus>yes</focus>
  959. # if the window should try be given focus when it appears. if this is set
  960. # to yes it doesn't guarantee the window will be given focus. some
  961. # restrictions may apply, but Openbox will try to
  962. <desktop>1</desktop>
  963. # 1 is the first desktop, 'all' for all desktops
  964. <layer>normal</layer>
  965. # 'above', 'normal', or 'below'
  966. <iconic>no</iconic>
  967. # make the window iconified when it appears, or not
  968. <skip_pager>no</skip_pager>
  969. # asks to not be shown in pagers
  970. <skip_taskbar>no</skip_taskbar>
  971. # asks to not be shown in taskbars. window cycling actions will also
  972. # skip past such windows
  973. <fullscreen>yes</fullscreen>
  974. # make the window in fullscreen mode when it appears
  975. <maximized>true</maximized>
  976. # 'Horizontal', 'Vertical' or boolean (yes/no)
  977. </application>
  978. # end of the example
  979. -->
  980. </applications>
  981. </openbox_config>