Tiny Core Extensions > TCE Tips & Tricks
config for labwc
Juanito:
Does anybody have a tinycore compatible config for the labwc wayland compositor, perhaps based on the x86_64 openbox-config extension by @polikuo?
GNUser:
Hi Juanito. I dual-boot TCL15 x86_64 with fluxbox and TCL15 x86_64 with labwc. I mostly use fluxbox but like to keep labwc around for wayland experiments.
This is my tinycore compatible labwc config (file location is ~/.config/labwc/rc.xml):
--- Code: ---<?xml version="1.0" ?>
<labwc_config>
<keyboard>
<default />
<keybind key="d-W"><action name="Execute" command="xfe ~/Downloads" /></keybind>
<keybind key="h-W"><action name="Execute" command="xfe ~" /></keybind>
<keybind key="m-W"><action name="Execute" command="mnttool" /></keybind>
<keybind key="t-W"><action name="Execute" command="foot" /></keybind>
</keyboard>
<regions>
<region name="nice-spot" x="2%" y="5%" width="80%" height="80%"></region>
</regions>
<windowRules>
<windowRule identifier="" title="Calendar"><action name="ResizeTo" width="100" height="100" /><action name="MoveTo" x="1070" y="60" /></windowRule>
<windowRule identifier="" title="Save*"><action name="ResizeTo" width="900" height="550" /><action name="MoveTo" x="200" y="150" /></windowRule>
<windowRule identifier="" title="Open File"><action name="ResizeTo" width="900" height="550" /><action name="MoveTo" x="200" y="150" /></windowRule>
<windowRule title="Write:*"><action name="SnapToRegion" region="nice-spot" /></windowRule>
</windowRules>
<mouse>
<default />
<context name="Root">
<mousebind button="Left" action="Press">
<action name="Unfocus" />
</mousebind>
</context>
<context name="Title">
<mousebind button="Left" action="DoubleClick">
<action name="Execute" command="false" />
</mousebind>
</context>
</mouse>
</labwc_config>
--- End code ---
GNUser:
P.S. As I'm sure you noticed, I use the config file for custom keyboard shortcuts, custom window placements, and custom mouse-click actions. If no custom behavior is needed, labwc runs fine without a config file.
Juanito:
Perhaps I’m missing something, but without any files in ~/.config/labwc all I get is a right click menu with reconfigure and exit..
GNUser:
That's expected. labwc is radically minimalistic by design. To add entries to the right click menu you would edit ~/.config/labwc/menu.xml. Mine looks like this, for example:
--- Code: ---<?xml version="1.0" ?>
<openbox_menu>
<menu id="root-menu" label="">
<item label="Web browser"><action name="Execute" command="brave-browser --ozone-platform=wayland" /></item>
<item label="Terminal"><action name="Execute" command="foot" /></item>
<item label="Reconfigure"><action name="Reconfigure" /></item>
<item label="Exit to console"><action name="Exit" /></item>
<item label="Reboot"><action name="Execute" command="sudo reboot" /></item>
<item label="Shutdown"><action name="Execute" command="sudo poweroff" /></item>
</menu>
</openbox_menu>
--- End code ---
Do you think the labwc.tcz extension should come with a startup script that builds ~/.config/labwc/menu.xml based on what's available on the user's system? If so I can put one together and include it next time that I update the extension.
Navigation
[0] Message Index
[#] Next page
Go to full version