Skip to content

Instantly share code, notes, and snippets.

@lf-araujo
Created February 20, 2026 13:57
Show Gist options
  • Select an option

  • Save lf-araujo/4f5278cb975a2c32435acd369869fa8d to your computer and use it in GitHub Desktop.

Select an option

Save lf-araujo/4f5278cb975a2c32435acd369869fa8d to your computer and use it in GitHub Desktop.
Labwc config
<?xml version="1.0"?>
<labwc_config>
<core>
<gap>5</gap>
</core>
<theme>
<name>OpenboxSur-Dark</name>
<cornerRadius>8</cornerRadius>
<font name="sans" size="10"/>
</theme>
<desktops number="4" />
<desktops>
<popupTime>1000</popupTime>
<names>
<name>1:💻</name> <!-- Coding or general work -->
<name>2:🧪</name> <!-- Science desktop -->
<name>3:🌐</name> <!-- Web or communication -->
<name>4:🎵</name> <!-- Media or music -->
</names>
</desktops>
<regions>
<region name="top-left" x="0%" y="0%" height="50%" width="60%" />
<region name="top" x="0%" y="0%" height="50%" width="100%" />
<region name="top-right" x="60%" y="0%" height="50%" width="40%" />
<region name="left" x="0%" y="0%" height="100%" width="60%" />
<region name="center" x="10%" y="10%" height="80%" width="80%" />
<region name="right" x="60%" y="0%" height="100%" width="40%" />
<region name="bottom-left" x="0%" y="50%" height="50%" width="60%" />
<region name="bottom" x="0%" y="50%" height="50%" width="100%" />
<region name="bottom-right" x="60%" y="50%" height="50%" width="40%" />
</regions>
<placement>
<policy>automatic</policy>
</placement>
<keyboard>
<default/>
<!-- Terminal -->
<keybind key="W-Return">
<action name="Execute" command="alacritty"/>
</keybind>
<!-- Disable Win+F4 -->
<keybind key="W-F4">
<action name="None"/>
</keybind>
<!-- Audio keys -->
<keybind key="POINTER_SCROLL_WHEEL">
<action name="Execute" command="amixer -D pulse sset Master 5%-"/>
</keybind>
<!-- <keybind key="XF86_AudioRaiseVolume">
<action name="Execute" command="amixer -D pulse sset Master 5%+"/>
</keybind>
<keybind key="XF86_AudioMute">
<action name="Execute" command="amixer -D pulse sset Master toggle"/>
</keybind> -->
<keybind key="KEY_BRIGHTNESSUP">
<action name="Execute" command="brightnessctl set +10%" />
</keybind>
<keybind key="KEY_BRIGHTNESSDOWN">
<action name="Execute" command="brightnessctl set 10%-" />
</keybind>
<!-- Window management -->
<keybind key="W-q">
<action name="Close"/>
</keybind>
<keybind key="A-Tab">
<action name="NextWindow"/>
</keybind>
<keybind key="W-Tab">
<action name="ToggleMaximize"/>
</keybind>
<!-- Desktop switching -->
<keybind key="W-1">
<action name="GoToDesktop" to="1"/>
</keybind>
<keybind key="W-2">
<action name="GoToDesktop" to="2"/>
</keybind>
<keybind key="W-3">
<action name="GoToDesktop" to="3"/>
</keybind>
<keybind key="W-4">
<action name="GoToDesktop" to="4"/>
</keybind>
<keybind key="W-right">
<action name="SnapToRegion" region="right" />
</keybind>
<keybind key="W-left">
<action name="SnapToRegion" region="left" />
</keybind>
<keybind key="W-up">
<action name="SnapToRegion" region="top-right" />
</keybind>
<keybind key="W-down">
<action name="SnapToRegion" region="bottom-right" />
</keybind>
<!-- Whisker menu xfce4-popup-whiskermenu-->
<keybind key="W-Space">
<action name="Execute" command="/home/luis/.nimble/bin/nimlaunch"/>
</keybind>
<keybind key="W-S-Right">
<action name="SendToDesktop" to="right" follow="no"/>
</keybind>
<keybind key="W-S-Left">
<action name="SendToDesktop" to="left" follow="no"/>
</keybind>
<keybind key="W-S-1">
<action name="SendToDesktop" to="1" follow="yes"/>
</keybind>
<keybind key="W-S-2">
<action name="SendToDesktop" to="2" follow="yes"/>
</keybind>
<keybind key="W-S-3">
<action name="SendToDesktop" to="3" follow="yes"/>
</keybind>
<keybind key="W-S-4">
<action name="SendToDesktop" to="4" follow="yes"/>
</keybind>
<!-- Snap to corners -->
<keybind key="W-u">
<action name="SnapToRegion" region="top-left" />
</keybind>
<keybind key="W-i">
<action name="SnapToRegion" region="top-right" />
</keybind>
<keybind key="W-n">
<action name="SnapToRegion" region="bottom-left" />
</keybind>
<keybind key="W-m">
<action name="SnapToRegion" region="bottom-right" />
</keybind>
<!-- Snap to sides -->
<keybind key="W-h">
<action name="SnapToRegion" region="left" />
</keybind>
<keybind key="W-l">
<action name="SnapToRegion" region="right" />
</keybind>
<keybind key="W-j">
<action name="SnapToRegion" region="bottom" />
</keybind>
<keybind key="W-k">
<action name="SnapToRegion" region="top" />
</keybind>
</keyboard>
<snapping>
<range>10</range>
</snapping>
<libinput>
<!-- Enable natural scrolling for touchpad only -->
<device category="touchpad">
<naturalScroll>yes</naturalScroll>
</device>
<!-- Disable natural scrolling for mouse -->
<device category="non-touch">
<naturalScroll>no</naturalScroll>
</device>
</libinput>
<windowSwitcher show="yes" preview="yes" outlines="yes" allWorkspaces="yes">
<fields>
<field content="icon" width="15%" />
<field content="desktop_entry_name" width="15%" />
<field content="title" width="65%" />
<!--
Just as for window-rules, you can use 'identifier' or
'trimmed_identifier' to show the app_id for native wayland clients or
WM_CLASS for XWayland clients.
<field content="trimmed_identifier" width="65%" />
-->
</fields>
</windowSwitcher>
</labwc_config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment