Ja freili.
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">
<!-- Minor stuff. -->
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<followMouse>no</followMouse>
<focusLast>yes</focusLast>
<underMouse>no</underMouse>
<focusDelay>200</focusDelay>
<raiseOnFocus>no</raiseOnFocus>
</focus>
<placement>
<policy>Smart</policy>
<center>no</center>
<monitor>Any</monitor>
</placement>
<!-- Virtually pointless, as only the context menus are ever visible. Exception: The window border should be lightly
coloured. Together with compton's shadows, this ensures that even overlapping terminal windows can be easily
distinguised from each other.
Additionally, compton adds shading and transparency for inactive windows. This is especially necessary for multi-
monitor setups, as without window decorations it's hard to identify which of the top windows on each screen is the
active one. -->
<theme>
<name>Mediterranean</name>
<titleLayout>NLSIMC</titleLayout>
<keepBorder>yes</keepBorder>
<animateIconify>no</animateIconify>
<font place="ActiveWindow">
<name>Dejavu Sans</name>
<size>8</size>
<weight>bold</weight>
<slant>normal</slant>
</font>
<font place="InactiveWindow">
<name>Dejavu Sans</name>
<size>8</size>
<weight>Normal</weight>
<slant>Italic</slant>
</font>
<font place="MenuHeader">
<name>Dejavu Sans</name>
<size>8</size>
<weight>Bold</weight>
<slant>Normal</slant>
</font>
<font place="MenuItem">
<name>Sans</name>
<size>8</size>
<weight>Normal</weight>
<slant>Normal</slant>
</font>
<font place="OnScreenDisplay">
<name>Sans</name>
<size>8</size>
<weight>Normal</weight>
<slant>Normal</slant>
</font>
<font place="ActiveOnScreenDisplay">
<name>Sans</name>
<size>8</size>
<weight/>
<slant/>
</font>
<font place="InactiveOnScreenDisplay">
<name>Sans</name>
<size>8</size>
<weight/>
<slant/>
</font>
</theme>
<!-- More minor stuff. -->
<desktops>
<number>4</number>
<firstdesk>1</firstdesk>
<names>
</names>
<popupTime>0</popupTime>
</desktops>
<resize>
<drawContents>yes</drawContents>
<popupShow>Always</popupShow>
<popupPosition>Center</popupPosition>
<popupFixedPosition>
<x>0</x>
<y>0</y>
</popupFixedPosition>
</resize>
<!-- Margin on every corner, so the desktop menus are always accessible! -->
<margins>
<top>1</top>
<bottom>1</bottom>
<left>1</left>
<right>1</right>
</margins>
<!-- Here we go. -->
<keyboard>
<!-- Basic movement. Barely used, Alt+Drag is more convenient on a TrackPoint®. -->
<keybind key="C-A-Left">
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="C-A-Right">
<action name="MoveToEdgeEast"/>
</keybind>
<keybind key="C-A-Up">
<action name="ToggleMaximize"/>
</keybind>
<!-- Same here. Hyper+Middle is faster most of the time, unless the mouse is too far away. -->
<keybind key="C-A-Down">
<action name="Iconify"/>
</keybind>
<!-- Basic keys. I'm not sadistic enough to change those. -->
<keybind key="S-A-Right">
<action name="DesktopNext"/>
</keybind>
<keybind key="S-A-Left">
<action name="DesktopPrevious"/>
</keybind>
<keybind key="A-F4">
<action name="Close"/>
</keybind>
<keybind key="A-Tab">
<action name="NextWindow"/>
</keybind>
<keybind key="A-S-Tab">
<action name="PreviousWindow"/>
</keybind>
<!-- Shell wrappers around xrandr and /sys/class/backlight/acpi_video0 -->
<keybind key="XF86MonBrightnessDown">
<action name="Execute">
<command>decbrightness</command>
</action>
</keybind>
<keybind key="XF86Display">
<action name="Execute">
<command>toggle-external</command>
</action>
</keybind>
<keybind key="XF86MonBrightnessUp">
<action name="Execute">
<command>incbrightness</command>
</action>
</keybind>
<keybind key="XF86Launch1">
<action name="Execute">
<command>default-terminal</command>
</action>
</keybind>
<keybind key="XF86ScreenSaver">
<action name="Execute">
<command>slock</command>
</action>
</keybind>
<!-- Key names are a bit out of whack on some Thinkpad models. -->
<keybind key="XF86MyComputer">
<action name="Execute">
<command>slock</command>
</action>
</keybind>
<keybind key="A-F2">
<action name="Execute">
<command>default-terminal</command>
</action>
</keybind>
<!-- DMenu with support for favourites, XDG application files, as well as a list of open windows -->
<keybind key="C-XF86Launch1">
<action name="Execute">
<command>yswrapdmenu</command>
</action>
</keybind>
<keybind key="C-space">
<action name="Execute">
<command>yswrapdmenu</command>
</action>
</keybind>
<keybind key="XF86Launch2">
<action name="Execute">
<command>yswrapdmenu</command>
</action>
</keybind>
<keybind key="Print">
<action name="Execute">
<command>scrot /tmp/clipboard.png</command>
</action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>amixer sset Master 5%+</command>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer sset Master 5%-</command>
</action>
</keybind>
<keybind key="XF86AudioNext">
<action name="Execute">
<command>mocp --next</command>
</action>
</keybind>
<keybind key="XF86AudioPlay">
<action name="Execute">
<command>mocp --toggle-pause</command>
</action>
</keybind>
<keybind key="XF86AudioPrev">
<action name="Execute">
<command>mocp --previous</command>
</action>
</keybind>
</keyboard>
<!-- …and the mouse binding. As TrackPoint® user, the mouse is just as close as the keyboard and switching is instantaneous,
so my work flow is rather mouse heavy despite everything. -->
<mouse>
<dragThreshold>8</dragThreshold>
<doubleClickTime>250</doubleClickTime>
<screenEdgeWarpTime>0</screenEdgeWarpTime>
<context name="Frame">
<!-- normal stuff. -->
<mousebind button="A-Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="A-Left" action="Click">
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="A-Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<!-- Resize windows by Alt+Right dragging. -->
<mousebind button="A-Right" action="Drag">
<action name="Resize"/>
</mousebind>
<!-- Minimize with logo key+middle click -->
<mousebind button="H-Middle" action="Click">
<action name="Iconify"/>
</mousebind>
<!-- Window manager menu (move to other layer/desktop) on Logo+Right. I need those functions too rarely to memorize
dedicated keyboard shortcuts. Logo+1/2/3/4 would work for desktops, I guess. -->
<mousebind button="H-Right" action="Click">
<action name="ShowMenu"><menu>client-menu</menu></action>
</mousebind>
<!-- Push to bottom and unfocus. More useful on large screens with lots of windows than minimizing everything, imo. -->
<mousebind button="A-Middle" action="Click">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
</context>
<context name="Client">
<!-- normal stuff again. -->
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<!-- Move windows by Alt+Drag. Pretty normal too. (HELLO GNOME 3 HINT HINT NUDGE NUDGE WINK WINK) -->
<mousebind button="A-Left" action="Drag">
<action name="Move"/>
</mousebind>
</context>
<!-- normal stuff again. -->
<context name="Desktop">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Root">
<!-- Unified list for all desktops to make jumping between them easier. -->
<mousebind button="Middle" action="Press">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</mousebind>
<mousebind button="Left" action="Press">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</mousebind>
<!-- Generic XDG openbox menu implementation, there's dozens of them I think. Rarely used now that I have dmenu with XDG
support. -->
<mousebind button="Right" action="Press">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</mousebind>
</context>
</mouse>
<!-- more misc stuff. I should group this together… -->
<menu>
<file>menu.xml</file>
<hideDelay>200</hideDelay>
<middle>yes</middle>
<submenuShowDelay>100</submenuShowDelay>
<applicationIcons>yes</applicationIcons>
<manageDesktops>no</manageDesktops>
</menu>
<dock>
<position>TopLeft</position>
<floatingX>0</floatingX>
<floatingY>0</floatingY>
<stacking>Above</stacking>
<direction>Vertical</direction>
<noStrut>no</noStrut>
<autoHide>no</autoHide>
<hideDelay>300</hideDelay>
<showDelay>300</showDelay>
</dock>
<!-- …and The Magic®. Fuck decorations, where we're going, we don't need them. -->
<applications>
<application class="*">
<decor>no</decor>
</application>
</applications>
</openbox_config>