You are not logged in.

#1 2025-10-16 22:22:23

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Adding labwc to BL Carbon

I'm feeling confident, let's see the URL.

https://github.com/labwc/labwc

Two websites, getting nervous now...

https://labwc.github.io/

OK, not much there except install labwc and alacritty.

sudo apt install labwc alacritty

Set some keybinds, create ~/.config/labwc/rc.xml

Content...

<?xml version="1.0" ?>
<labwc_config>
  <keyboard>
    <default />
    <!-- The W- prefix refers to the Super key -->
    <keybind key="W-d">
      <action name="Execute" command="sakura" />
    </keybind>
    <keybind key="W-z">
      <action name="Execute" command="wofi --show drun" />
    </keybind>
  </keyboard>
</labwc_config>

Wait, we don't have sakura or wofi installed. The bigger picture...

https://raw.githubusercontent.com/labwc … rc.xml.all

Step 3 (I skipped Step 1 because my US keyboard is the default), create and populate ~/.config/labwc/autostart

And the root menu, ~/.config/labwc/menu.xml

<?xml version="1.0" ?>
<openbox_menu>
<menu id="root-menu" label="">
  <item label="Web browser"><action name="Execute" command="firefox"/></item>
  <item label="Terminal"><action name="Execute" command="alacritty"/></item>
  <item label="Reconfigure"><action name="Reconfigure"/></item>
  <item label="Exit"><action name="Exit"/></item>
</menu>
</openbox_menu>

Install swaybg to get a wallpaper and add it to your autostart, see Step 3 on the Wiki. Let's see what we've got.


I don't care what you do at home. Would you care to explain?

Online

#2 2025-10-16 22:34:19

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Re: Adding labwc to BL Carbon

My autostart...

swaybg -i ~/Pictures/wallpapers/crystal.png &
xfce4-panel &

The desktop... I don't have grim installed yet to take a wl-rootls scrot.

sudo apt install grim slurp

I don't care what you do at home. Would you care to explain?

Online

#3 2025-10-16 22:38:12

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Re: Adding labwc to BL Carbon

Woah, two root menus. My scrot only caught jgmenu.

GOuffefM_t.png

That's quite a usable first desktop for a stand-alone window manager setup.


I don't care what you do at home. Would you care to explain?

Online

#4 2025-10-16 23:00:24

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Re: Adding labwc to BL Carbon

I've installed gnome-system-monitor to get an easy look at my processes.

UrYZCm2d_t.png

I knew I was missing polkit, but xdg-desktop-portal isn't installed or running either. Time for the wiki again...

https://labwc.github.io/integration.html

I've install xdg-desktop-portal-wlr and xdg-desktop-portal-gtk and have nm-applet and mate-polkit added, good so far.

HtKlYhTz_t.png

-edit- The important thing, the wallpaper link...

https://wall.alphacoders.com/big.php?i=1401879

Last edited by hhh (2025-10-16 23:27:09)


I don't care what you do at home. Would you care to explain?

Online

#5 2025-10-16 23:37:34

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,748

Re: Adding labwc to BL Carbon

Nice.

In a terminal try:

notify-send "labwc on BL Carbon"

xfce4-notify works with Wayland; it should be running.


You must unlearn what you have learned.
    -- yoda

Offline

#6 2025-10-16 23:52:08

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Re: Adding labwc to BL Carbon

^ It is running (see my sys-mon scrots), my volume up/down/mute keys and notifications work OOTB. I've installed light to get backlight keys working but haven't added that section to my rc.xml yet.

I did add a theme section so I could enable dropshadows, and I'm amazed how well this is coming together over default carbon. It's super light on RAM and it's theming itself.

bOssYCe0_t.png

My touchpad loves libinput, no need to configure anything.


I don't care what you do at home. Would you care to explain?

Online

#7 2025-10-17 00:08:13

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Re: Adding labwc to BL Carbon

My revised autostart, the wiki uses this dev/null redirection thing, I guess just to double down on not leaving a ghost process or something. That's me talking out of my posterior, I don't why this is the preferred format.

/usr/libexec/polkit-mate-authentication-agent-1 >/dev/null 2>&1 &
swaybg -i ~/Pictures/wallpapers/crystal.png >/dev/null 2>&1 &
xfce4-panel >/dev/null 2>&1 &
nm-applet >/dev/null 2>&1 &

I don't care what you do at home. Would you care to explain?

Online

#8 2025-10-17 01:33:44

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,748

Re: Adding labwc to BL Carbon

Does LXterminal work well in Wayland?


You must unlearn what you have learned.
    -- yoda

Offline

#9 2025-10-17 11:41:08

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,962
Website

Re: Adding labwc to BL Carbon

^Yes I think it was OK last time I looked.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#10 2025-10-17 11:43:49

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,962
Website

Re: Adding labwc to BL Carbon

hhh wrote:

the wiki uses this dev/null redirection thing, I guess just to double down on not leaving a ghost process or something

My guess is someone doesn't like seeing messages in ~/.xsession-errors. Personally, I wouldn't do that unless some app was really verbose.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#11 2025-10-17 18:27:02

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Re: Adding labwc to BL Carbon

^ Both the labwc docs and the Arch wiki entry use a combination without explaining. It shouldn't hurt anything to format every entry the same way like I've done.

@PackRat, I'm running xfce4-panel with no issues.

As per the labwc Integration page, run the following in a terminal...

xfconf-query -c xfce4-panel -p /force-all-internal -t bool -s true --create

That unifies the panel background. Logout or restart the panel.


I don't care what you do at home. Would you care to explain?

Online

#12 2025-10-17 18:39:54

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Re: Adding labwc to BL Carbon

So, I was wondering why I wasn't seeing Icons in my Window Switcher. That feature is in a newer version, making building labwc from source worthwhile IMO...

xcS9nP1i_t.png


I don't care what you do at home. Would you care to explain?

Online

#13 2025-10-19 22:53:24

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Re: Adding labwc to BL Carbon

W-d keybind to toggleShowDesktop isn't part of labwc yet. Steal this script, place it in bin or somewhere in your $PATH (/usr/local/bin usually works) and make it executable, add the keybind, install wlrctl...

sudo apt install wlrctl

Reconfigure labwc (or just logout), profit.

https://forum.maboxlinux.org/t/togglesh … labwc/2143


I don't care what you do at home. Would you care to explain?

Online

#14 2025-12-17 05:21:41

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,962
Website

Re: Adding labwc to BL Carbon

johnraff wrote:

My guess is someone doesn't like seeing messages in ~/.xsession-errors. Personally, I wouldn't do that unless some app was really verbose.

hhh wrote:

^ Both the labwc docs and the Arch wiki entry use a combination without explaining. It shouldn't hurt anything to format every entry the same way like I've done.

>/dev/null 2>&1
is redirecting all the output to the bit bucket. Normally it gets sent to ~/.xsession-errors. No it won't really hurt throwing away all that output, but sometimes there are useful hints in that file when something doesn't work, like when an app just silently fails to start. I think it's better not to block by default, and only add that >/dev/null 2>&1 for apps that are obnoxiously verbose. I think tint2 fell into that category at least one time - haven't checked recently.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#15 2025-12-17 14:24:09

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Re: Adding labwc to BL Carbon

^ I don't get it. Except for the display manager, we're not running X. Once lightdm starts the labwc config, isn't labwc handling startup errors (journalctl)? So is my sending the output to null preventing journalctl from seeing any errors?

Anyway, hopefully @malm will do a once-over on our config when the time comes. smile


I don't care what you do at home. Would you care to explain?

Online

#16 2025-12-17 18:07:51

malm
jgmenu developer
Registered: 2016-10-13
Posts: 751
Website

Re: Adding labwc to BL Carbon

@hhh Hey, absolutely. Is that the 'carbon' branch of https://github.com/BunsenLabs/bunsen-configs that needs a review? I had a quick scoot but couldn't find any compositor files.

Just point me smile

Got my head in labwc-tweaks at the moment

Offline

#17 2025-12-17 20:47:11

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Re: Adding labwc to BL Carbon

@malm, the question is about the labwc autostart...

https://forums.bunsenlabs.org/viewtopic … 14#p146214 < See this post and @jognraff's post two above yours and my response regarding error logging.

If you could clarify what's happening with directing some outputs to dev/null (ex: swaybg -i ~/Pictures/wallpapers/crystal.png >/dev/null 2>&1 &), and which processes you think should not be redirected?


I don't care what you do at home. Would you care to explain?

Online

#18 2025-12-17 21:17:27

malm
jgmenu developer
Registered: 2016-10-13
Posts: 751
Website

Re: Adding labwc to BL Carbon

@hhh

If you re-direct to /dev/null you won't see them.

Thinking about it, the advice in labwc's example autostart is possibly a bit "compositor developer" biased and not actually that helpful to others. I guess I originally did it that way so that I could focus on the log messages of the compositor itself and not get distracted by those of clients.

From the perspective of a Desktop Environment I think it makes sense to NOT hide stdout/stderr.

Offline

#19 2025-12-17 21:19:39

malm
jgmenu developer
Registered: 2016-10-13
Posts: 751
Website

Re: Adding labwc to BL Carbon

Looking at the current BunsenLabs autostart, it looks like we do not hide stdout/stderr except for stderr of synclient.


Ref: https://github.com/BunsenLabs/bunsen-co … /autostart

Offline

#20 2025-12-17 21:30:51

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,580
Website

Re: Adding labwc to BL Carbon

So just run everything normally (ex: swaybg -i ~/Pictures/wallpapers/crystal.png &)?


I don't care what you do at home. Would you care to explain?

Online

Board footer

Powered by FluxBB