Back to Noctalia

Labwc

v5-compositor-settings-labwc.md

latest2.3 KB
Original Source

Labwc

Add the following compositor settings inside your existing <labwc_config> element, located in your Labwc xml configuration file (found at ~/.config/labwc/rc.xml)

Example config structure:

<?xml version="1.0" encoding="UTF-8"?><labwc_config> <!-- The config goes here --></labwc_config>

Recommended compositor settings:

<core> <gap>10</gap> </core> <!-- Thumbnail-based window switcher --> <windowSwitcher preview="no" outlines="yes"> <osd style="thumbnail"/> </windowSwitcher>

Autostart noctalia

Section titled “Autostart noctalia”

Add the following to the Labwc autostart file ~/.config/labwc/autostart

noctalia

IPC Keybinds

Section titled “IPC Keybinds”

Add these binds to your rc.xml

<keyboard> <!-- Include the default Labwc keybinds --> <default />
    <!-- Core keys --> <keybind key="W-space"><action name="Execute"><command>noctalia msg panel-toggle launcher</command></action></keybind> <keybind key="W-s"><action name="Execute"><command>noctalia msg panel-toggle control-center</command></action></keybind> <keybind key="W-,"><action name="Execute"><command>noctalia msg settings-toggle</command></action></keybind>
    <!-- Media keys --> <keybind key="XF86AudioRaiseVolume"><action name="Execute"><command>noctalia msg volume-up</command></action></keybind> <keybind key="XF86AudioLowerVolume"><action name="Execute"><command>noctalia msg volume-down</command></action></keybind> <keybind key="XF86AudioMute"><action name="Execute"><command>noctalia msg volume-mute</command></action></keybind> <keybind key="XF86MonBrightnessUp"><action name="Execute"><command>noctalia msg brightness-up</command></action></keybind> <keybind key="XF86MonBrightnessDown"><action name="Execute"><command>noctalia msg brightness-down</command></action></keybind> </keyboard>

DPMS mode

Section titled “DPMS mode”

Install wlopm from extra repository for Arch Linux

sudo pacman -S wlopm

Create a custom command for dpms on and off using wlopm. Add the below commands to the toml config. Pass the Wayland connector name (e.g. DP-1, HDMI-A-1)

[idle.behavior.screen-off]timeout = 600command = "wlopm --off [Monitor name]"resume_command = "wlopm --on [Monitor name]"