Guest User

Untitled

a guest
Nov 2nd, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.35 KB | None | 0 0
  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>20</strength>
  5. <screen_edge_strength>50</screen_edge_strength>
  6. </resistance>
  7. <focus>
  8. <focusNew>yes</focusNew>
  9. <!-- always try to focus new windows when they appear. other rules do
  10. apply -->
  11. <followMouse>yes</followMouse>
  12. <!-- move focus to a window when you move the mouse into it -->
  13. <focusLast>no</focusLast>
  14. <!-- focus the last used window when changing desktops, instead of the one
  15. under the mouse pointer. when followMouse is enabled -->
  16. <underMouse>no</underMouse>
  17. <!-- move focus under the mouse, even when the mouse is not moving -->
  18. <focusDelay>200</focusDelay>
  19. <!-- when followMouse is enabled, the mouse must be inside the window for
  20. this many milliseconds (1000 = 1 sec) before moving focus to it -->
  21. <raiseOnFocus>no</raiseOnFocus>
  22. <!-- when followMouse is enabled, and a window is given focus by moving the
  23. mouse into it, also raise the window -->
  24. </focus>
  25. <placement>
  26. <policy>Smart</policy>
  27. <!-- 'Smart' or 'UnderMouse' -->
  28. <monitor>Mouse</monitor>
  29. <!-- with Smart placement on a multi-monitor system, try to place new windows
  30. on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
  31. the active window is, 'Primary' - only on the primary monitor -->
  32. <primaryMonitor>1</primaryMonitor>
  33. <!-- The monitor where Openbox should place popup dialogs such as the
  34. focus cycling popup, or the desktop switch popup. It can be an index
  35. from 1, specifying a particular monitor. Or it can be one of the
  36. following: 'Mouse' - where the mouse is, or
  37. 'Active' - where the active window is -->
  38. </placement>
  39. <theme>
  40. <name>darkasmysoul</name>
  41. <titleLayout>LIMC</titleLayout>
  42. <!--
  43. available characters are NDSLIMC, each can occur at most once.
  44. N: window icon
  45. L: window label (AKA title).
  46. I: iconify
  47. M: maximize
  48. C: close
  49. S: shade (roll up/down)
  50. D: omnipresent (on all desktops).
  51. -->
  52. <keepBorder>yes</keepBorder>
  53. <animateIconify>yes</animateIconify>
  54. <font place="ActiveWindow">
  55. <name>Kozuka Gothic Pro</name>
  56. <size>10</size>
  57. <!-- font size in points -->
  58. <weight>Normal</weight>
  59. <!-- 'bold' or 'normal' -->
  60. <slant>Normal</slant>
  61. <!-- 'italic' or 'normal' -->
  62. </font>
  63. <font place="InactiveWindow">
  64. <name>Kozuka Gothic Pro</name>
  65. <size>10</size>
  66. <!-- font size in points -->
  67. <weight>Normal</weight>
  68. <!-- 'bold' or 'normal' -->
  69. <slant>Normal</slant>
  70. <!-- 'italic' or 'normal' -->
  71. </font>
  72. <font place="MenuHeader">
  73. <name>Kozuka Gothic Pro</name>
  74. <size>10</size>
  75. <!-- font size in points -->
  76. <weight>Normal</weight>
  77. <!-- 'bold' or 'normal' -->
  78. <slant>Normal</slant>
  79. <!-- 'italic' or 'normal' -->
  80. </font>
  81. <font place="MenuItem">
  82. <name>Kozuka Gothic Pro</name>
  83. <size>10</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="ActiveOnScreenDisplay">
  91. <name>Kozuka Gothic Pro</name>
  92. <size>10</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="InactiveOnScreenDisplay">
  100. <name>Kozuka Gothic Pro</name>
  101. <size>10</size>
  102. <!-- font size in points -->
  103. <weight>Normal</weight>
  104. <!-- 'bold' or 'normal' -->
  105. <slant>Normal</slant>
  106. <!-- 'italic' or 'normal' -->
  107. </font>
  108. </theme>
  109. <desktops>
  110. <!-- this stuff is only used at startup, pagers allow you to change them
  111. during a session
  112.  
  113. these are default values to use when other ones are not already set
  114. by other applications, or saved in your session
  115.  
  116. use obconf if you want to change these without having to log out
  117. and back in -->
  118. <number>1</number>
  119. <firstdesk>1</firstdesk>
  120. <names>
  121. <!-- set names up here if you want to, like this:
  122. <name>desktop 1</name>
  123. <name>desktop 2</name>
  124. -->
  125. </names>
  126. <popupTime>875</popupTime>
  127. <!-- The number of milliseconds to show the popup for when switching
  128. desktops. Set this to 0 to disable the popup. -->
  129. </desktops>
  130. <resize>
  131. <drawContents>yes</drawContents>
  132. <popupShow>NonPixel</popupShow>
  133. <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  134. <popupPosition>Center</popupPosition>
  135. <!-- 'Center', 'Top', or 'Fixed' -->
  136. <popupFixedPosition>
  137. <!-- these are used if popupPosition is set to 'Fixed' -->
  138. <x>10</x>
  139. <!-- positive number for distance from left edge, negative number for
  140. distance from right edge, or 'Center' -->
  141. <y>10</y>
  142. <!-- positive number for distance from top edge, negative number for
  143. distance from bottom edge, or 'Center' -->
  144. </popupFixedPosition>
  145. </resize>
  146. <!-- You can reserve a portion of your screen where windows will not cover when
  147. they are maximized, or when they are initially placed.
  148. Many programs reserve space automatically, but you can use this in other
  149. cases. -->
  150. <margins>
  151. <top>0</top>
  152. <bottom>0</bottom>
  153. <left>0</left>
  154. <right>0</right>
  155. </margins>
  156. <dock>
  157. <position>TopLeft</position>
  158. <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  159. <floatingX>0</floatingX>
  160. <floatingY>0</floatingY>
  161. <noStrut>no</noStrut>
  162. <stacking>Above</stacking>
  163. <!-- 'Above', 'Normal', or 'Below' -->
  164. <direction>Vertical</direction>
  165. <!-- 'Vertical' or 'Horizontal' -->
  166. <autoHide>no</autoHide>
  167. <hideDelay>300</hideDelay>
  168. <!-- in milliseconds (1000 = 1 second) -->
  169. <showDelay>300</showDelay>
  170. <!-- in milliseconds (1000 = 1 second) -->
  171. <moveButton>Middle</moveButton>
  172. <!-- 'Left', 'Middle', 'Right' -->
  173. </dock>
  174. <keyboard>
  175. <chainQuitKey>C-g</chainQuitKey>
  176. <keybind key="C-A-Left">
  177. <action name="GoToDesktop"/>
  178. </keybind>
  179. <keybind key="C-A-x">
  180. <action name="Execute">
  181. <command>killall ffmpeg</command>
  182. </action>
  183. </keybind>
  184. <keybind key="C-A-Right">
  185. <action name="GoToDesktop"/>
  186. </keybind>
  187. <keybind key="C-A-Up">
  188. <action name="GoToDesktop"/>
  189. </keybind>
  190. <keybind key="C-A-Down">
  191. <action name="GoToDesktop"/>
  192. </keybind>
  193. <keybind key="S-A-Left">
  194. <action name="SendToDesktop"/>
  195. </keybind>
  196. <keybind key="S-A-Right">
  197. <action name="SendToDesktop"/>
  198. </keybind>
  199. <keybind key="S-A-Up">
  200. <action name="SendToDesktop"/>
  201. </keybind>
  202. <keybind key="S-A-Down">
  203. <action name="SendToDesktop"/>
  204. </keybind>
  205. <keybind key="W-F1">
  206. <action name="GoToDesktop"/>
  207. </keybind>
  208. <keybind key="W-F2">
  209. <action name="GoToDesktop"/>
  210. </keybind>
  211. <keybind key="W-F3">
  212. <action name="GoToDesktop"/>
  213. </keybind>
  214. <keybind key="W-F4">
  215. <action name="GoToDesktop"/>
  216. </keybind>
  217. <keybind key="W-d">
  218. <action name="ToggleShowDesktop"/>
  219. </keybind>
  220. <keybind key="W-S-c">
  221. <action name="Close"/>
  222. </keybind>
  223. <keybind key="W-r">
  224. <action name="Execute">
  225. <command>dmenu_recent_aliases -h '25' -sb '#6928A0' -nb '#1b1b1b' -fn 'kozuka gothic pro-9:medium'</command>
  226. </action>
  227. </keybind>
  228. <keybind key="W-Print">
  229. <action name="Execute">
  230. <command>scrot</command>
  231. </action>
  232. </keybind>
  233. <keybind key="W-w">
  234. <action name="Execute">
  235. <command>firefox</command>
  236. </action>
  237. </keybind>
  238. <keybind key="A-Escape">
  239. <action name="Lower"/>
  240. <action name="FocusToBottom"/>
  241. <action name="Unfocus"/>
  242. </keybind>
  243. <keybind key="A-space">
  244. <action name="ShowMenu">
  245. <menu>client-menu</menu>
  246. </action>
  247. </keybind>
  248. <keybind key="A-Tab">
  249. <action name="NextWindow"/>
  250. </keybind>
  251. <keybind key="A-S-Tab">
  252. <action name="PreviousWindow"/>
  253. </keybind>
  254. <keybind key="W-t">
  255. <action name="Execute">
  256. <command>thunar</command>
  257. </action>
  258. </keybind>
  259. <keybind key="C-A-Tab">
  260. <action name="NextWindow">
  261. <panels>yes</panels>
  262. <desktop>yes</desktop>
  263. </action>
  264. </keybind>
  265. <keybind key="W-S-Right">
  266. <action name="DirectionalCycleWindows"/>
  267. </keybind>
  268. <keybind key="W-S-Left">
  269. <action name="DirectionalCycleWindows"/>
  270. </keybind>
  271. <keybind key="W-S-Up">
  272. <action name="DirectionalCycleWindows"/>
  273. </keybind>
  274. <keybind key="W-S-Down">
  275. <action name="DirectionalCycleWindows"/>
  276. </keybind>
  277. <keybind key="W-Return">
  278. <action name="Execute">
  279. <command>urxvtc</command>
  280. <startupnotify>
  281. <enabled>yes</enabled>
  282. <name>urxvtc</name>
  283. </startupnotify>
  284. </action>
  285. </keybind>
  286. <keybind key="W-m">
  287. <action name="ToggleMaximizeFull"/>
  288. </keybind>
  289. <keybind key="S-W-m">
  290. <action name="Iconify"/>
  291. </keybind>
  292. <keybind key="W-f">
  293. <action name="ToggleFullscreen"/>
  294. </keybind>
  295. </keyboard>
  296. <mouse>
  297. <dragThreshold>1</dragThreshold>
  298. <!-- number of pixels the mouse must move before a drag begins -->
  299. <doubleClickTime>500</doubleClickTime>
  300. <!-- in milliseconds (1000 = 1 second) -->
  301. <screenEdgeWarpTime>400</screenEdgeWarpTime>
  302. <!-- Time before changing desktops when the pointer touches the edge of the
  303. screen while moving a window, in milliseconds (1000 = 1 second).
  304. Set this to 0 to disable warping -->
  305. <screenEdgeWarpMouse>false</screenEdgeWarpMouse>
  306. <!-- Set this to TRUE to move the mouse pointer across the desktop when
  307. switching due to hitting the edge of the screen -->
  308. <context name="Frame">
  309. <mousebind action="Press" button="A-Left">
  310. <action name="Focus"/>
  311. <action name="Raise"/>
  312. </mousebind>
  313. <mousebind action="Click" button="A-Left">
  314. <action name="Unshade"/>
  315. </mousebind>
  316. <mousebind action="Drag" button="A-Left">
  317. <action name="Move"/>
  318. </mousebind>
  319. <mousebind action="Press" button="A-Right">
  320. <action name="Focus"/>
  321. <action name="Raise"/>
  322. <action name="Unshade"/>
  323. </mousebind>
  324. <mousebind action="Drag" button="A-Right">
  325. <action name="Resize"/>
  326. </mousebind>
  327. <mousebind action="Press" button="A-Middle">
  328. <action name="Lower"/>
  329. <action name="FocusToBottom"/>
  330. <action name="Unfocus"/>
  331. </mousebind>
  332. <mousebind action="Click" button="A-Up">
  333. <action name="GoToDesktop">
  334. <to>previous</to>
  335. </action>
  336. </mousebind>
  337. <mousebind action="Click" button="A-Down">
  338. <action name="GoToDesktop">
  339. <to>next</to>
  340. </action>
  341. </mousebind>
  342. <mousebind action="Click" button="C-A-Up">
  343. <action name="GoToDesktop">
  344. <to>previous</to>
  345. </action>
  346. </mousebind>
  347. <mousebind action="Click" button="C-A-Down">
  348. <action name="GoToDesktop">
  349. <to>next</to>
  350. </action>
  351. </mousebind>
  352. <mousebind action="Click" button="A-S-Up">
  353. <action name="SendToDesktop">
  354. <to>previous</to>
  355. </action>
  356. </mousebind>
  357. <mousebind action="Click" button="A-S-Down">
  358. <action name="SendToDesktop">
  359. <to>next</to>
  360. </action>
  361. </mousebind>
  362. </context>
  363. <context name="Titlebar">
  364. <mousebind action="Drag" button="Left">
  365. <action name="Move"/>
  366. </mousebind>
  367. <mousebind action="DoubleClick" button="Left">
  368. <action name="ToggleMaximize"/>
  369. </mousebind>
  370. <mousebind action="Click" button="Up">
  371. <action name="if">
  372. <shaded>no</shaded>
  373. <then>
  374. <action name="Shade"/>
  375. <action name="FocusToBottom"/>
  376. <action name="Unfocus"/>
  377. <action name="Lower"/>
  378. </then>
  379. </action>
  380. </mousebind>
  381. <mousebind action="Click" button="Down">
  382. <action name="if">
  383. <shaded>yes</shaded>
  384. <then>
  385. <action name="Unshade"/>
  386. <action name="Raise"/>
  387. </then>
  388. </action>
  389. </mousebind>
  390. </context>
  391. <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
  392. <mousebind action="Press" button="Left">
  393. <action name="Focus"/>
  394. <action name="Raise"/>
  395. <action name="Unshade"/>
  396. </mousebind>
  397. <mousebind action="Press" button="Middle">
  398. <action name="Lower"/>
  399. <action name="FocusToBottom"/>
  400. <action name="Unfocus"/>
  401. </mousebind>
  402. <mousebind action="Press" button="Right">
  403. <action name="Focus"/>
  404. <action name="Raise"/>
  405. <action name="ShowMenu">
  406. <menu>client-menu</menu>
  407. </action>
  408. </mousebind>
  409. </context>
  410. <context name="Top">
  411. <mousebind action="Drag" button="Left">
  412. <action name="Resize">
  413. <edge>top</edge>
  414. </action>
  415. </mousebind>
  416. </context>
  417. <context name="Left">
  418. <mousebind action="Drag" button="Left">
  419. <action name="Resize">
  420. <edge>left</edge>
  421. </action>
  422. </mousebind>
  423. </context>
  424. <context name="Right">
  425. <mousebind action="Drag" button="Left">
  426. <action name="Resize">
  427. <edge>right</edge>
  428. </action>
  429. </mousebind>
  430. </context>
  431. <context name="Bottom">
  432. <mousebind action="Drag" button="Left">
  433. <action name="Resize">
  434. <edge>bottom</edge>
  435. </action>
  436. </mousebind>
  437. <mousebind action="Press" button="Right">
  438. <action name="Focus"/>
  439. <action name="Raise"/>
  440. <action name="ShowMenu">
  441. <menu>client-menu</menu>
  442. </action>
  443. </mousebind>
  444. </context>
  445. <context name="TRCorner BRCorner TLCorner BLCorner">
  446. <mousebind action="Press" button="Left">
  447. <action name="Focus"/>
  448. <action name="Raise"/>
  449. <action name="Unshade"/>
  450. </mousebind>
  451. <mousebind action="Drag" button="Left">
  452. <action name="Resize"/>
  453. </mousebind>
  454. </context>
  455. <context name="Client">
  456. <mousebind action="Press" button="Left">
  457. <action name="Focus"/>
  458. <action name="Raise"/>
  459. </mousebind>
  460. <mousebind action="Press" button="Middle">
  461. <action name="Focus"/>
  462. <action name="Raise"/>
  463. </mousebind>
  464. <mousebind action="Press" button="Right">
  465. <action name="Focus"/>
  466. <action name="Raise"/>
  467. </mousebind>
  468. </context>
  469. <context name="Icon">
  470. <mousebind action="Press" button="Left">
  471. <action name="Focus"/>
  472. <action name="Raise"/>
  473. <action name="Unshade"/>
  474. <action name="ShowMenu">
  475. <menu>client-menu</menu>
  476. </action>
  477. </mousebind>
  478. <mousebind action="Press" button="Right">
  479. <action name="Focus"/>
  480. <action name="Raise"/>
  481. <action name="ShowMenu">
  482. <menu>client-menu</menu>
  483. </action>
  484. </mousebind>
  485. </context>
  486. <context name="AllDesktops">
  487. <mousebind action="Press" button="Left">
  488. <action name="Focus"/>
  489. <action name="Raise"/>
  490. <action name="Unshade"/>
  491. </mousebind>
  492. <mousebind action="Click" button="Left">
  493. <action name="ToggleOmnipresent"/>
  494. </mousebind>
  495. </context>
  496. <context name="Shade">
  497. <mousebind action="Press" button="Left">
  498. <action name="Focus"/>
  499. <action name="Raise"/>
  500. </mousebind>
  501. <mousebind action="Click" button="Left">
  502. <action name="ToggleShade"/>
  503. </mousebind>
  504. </context>
  505. <context name="Iconify">
  506. <mousebind action="Press" button="Left">
  507. <action name="Focus"/>
  508. <action name="Raise"/>
  509. </mousebind>
  510. <mousebind action="Click" button="Left">
  511. <action name="Iconify"/>
  512. </mousebind>
  513. </context>
  514. <context name="Maximize">
  515. <mousebind action="Press" button="Left">
  516. <action name="Focus"/>
  517. <action name="Raise"/>
  518. <action name="Unshade"/>
  519. </mousebind>
  520. <mousebind action="Press" button="Middle">
  521. <action name="Focus"/>
  522. <action name="Raise"/>
  523. <action name="Unshade"/>
  524. </mousebind>
  525. <mousebind action="Press" button="Right">
  526. <action name="Focus"/>
  527. <action name="Raise"/>
  528. <action name="Unshade"/>
  529. </mousebind>
  530. <mousebind action="Click" button="Left">
  531. <action name="ToggleMaximize"/>
  532. </mousebind>
  533. <mousebind action="Click" button="Middle">
  534. <action name="ToggleMaximize">
  535. <direction>vertical</direction>
  536. </action>
  537. </mousebind>
  538. <mousebind action="Click" button="Right">
  539. <action name="ToggleMaximize">
  540. <direction>horizontal</direction>
  541. </action>
  542. </mousebind>
  543. </context>
  544. <context name="Close">
  545. <mousebind action="Press" button="Left">
  546. <action name="Focus"/>
  547. <action name="Raise"/>
  548. <action name="Unshade"/>
  549. </mousebind>
  550. <mousebind action="Click" button="Left">
  551. <action name="Close"/>
  552. </mousebind>
  553. </context>
  554. <context name="Desktop">
  555. <mousebind action="Click" button="Up">
  556. <action name="GoToDesktop">
  557. <to>previous</to>
  558. </action>
  559. </mousebind>
  560. <mousebind action="Click" button="Down">
  561. <action name="GoToDesktop">
  562. <to>next</to>
  563. </action>
  564. </mousebind>
  565. <mousebind action="Click" button="A-Up">
  566. <action name="GoToDesktop">
  567. <to>previous</to>
  568. </action>
  569. </mousebind>
  570. <mousebind action="Click" button="A-Down">
  571. <action name="GoToDesktop">
  572. <to>next</to>
  573. </action>
  574. </mousebind>
  575. <mousebind action="Click" button="C-A-Up">
  576. <action name="GoToDesktop">
  577. <to>previous</to>
  578. </action>
  579. </mousebind>
  580. <mousebind action="Click" button="C-A-Down">
  581. <action name="GoToDesktop">
  582. <to>next</to>
  583. </action>
  584. </mousebind>
  585. <mousebind action="Press" button="Left">
  586. <action name="Focus"/>
  587. <action name="Raise"/>
  588. </mousebind>
  589. <mousebind action="Press" button="Right">
  590. <action name="Focus"/>
  591. <action name="Raise"/>
  592. </mousebind>
  593. </context>
  594. <context name="Root">
  595. <!-- Menus -->
  596. <mousebind action="Press" button="Middle">
  597. <action name="ShowMenu">
  598. <menu>client-list-combined-menu</menu>
  599. </action>
  600. </mousebind>
  601. <mousebind action="Press" button="Right">
  602. <action name="ShowMenu">
  603. <menu>root-menu</menu>
  604. </action>
  605. </mousebind>
  606. </context>
  607. <context name="MoveResize">
  608. <mousebind action="Click" button="Up">
  609. <action name="GoToDesktop">
  610. <to>previous</to>
  611. </action>
  612. </mousebind>
  613. <mousebind action="Click" button="Down">
  614. <action name="GoToDesktop">
  615. <to>next</to>
  616. </action>
  617. </mousebind>
  618. <mousebind action="Click" button="A-Up">
  619. <action name="GoToDesktop">
  620. <to>previous</to>
  621. </action>
  622. </mousebind>
  623. <mousebind action="Click" button="A-Down">
  624. <action name="GoToDesktop">
  625. <to>next</to>
  626. </action>
  627. </mousebind>
  628. </context>
  629. </mouse>
  630. <menu>
  631. <!-- You can specify more than one menu file in here and they are all loaded,
  632. just don't make menu ids clash or, well, it'll be kind of pointless -->
  633. <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  634. <file>menu.xml</file>
  635. <hideDelay>200</hideDelay>
  636. <!-- if a press-release lasts longer than this setting (in milliseconds), the
  637. menu is hidden again -->
  638. <middle>no</middle>
  639. <!-- center submenus vertically about the parent entry -->
  640. <submenuShowDelay>100</submenuShowDelay>
  641. <!-- time to delay before showing a submenu after hovering over the parent
  642. entry.
  643. if this is a negative value, then the delay is infinite and the
  644. submenu will not be shown until it is clicked on -->
  645. <submenuHideDelay>400</submenuHideDelay>
  646. <!-- time to delay before hiding a submenu when selecting another
  647. entry in parent menu
  648. if this is a negative value, then the delay is infinite and the
  649. submenu will not be hidden until a different submenu is opened -->
  650. <showIcons>yes</showIcons>
  651. <!-- controls if icons appear in the client-list-(combined-)menu -->
  652. <manageDesktops>yes</manageDesktops>
  653. <!-- show the manage desktops section in the client-list-(combined-)menu -->
  654. </menu>
  655. <applications><application class="*"><decor>no</decor></application>s&gt;
  656.  
  657. </applications>
  658. </openbox_config>
Advertisement
Add Comment
Please, Sign In to add comment