blob: eb0c235484660043ae9cb88f255830d2fb3f2270 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
# start-unbox — launch the unbox Wayland session (mirrors start-labwc.sh).
#
# Wraps unbox in `dbus-run-session` so unbox and everything its session spawns
# (PipeWire, WirePlumber, future portals) share a single D-Bus *session* bus.
# Without this there is no session bus on Artix/s6, which breaks portals and
# makes PipeWire spam RTKit "ServiceUnknown" warnings.
#
# Usage: from a TTY, run start-unbox
#
# Wallpaper: unbox has no built-in wallpaper, so we draw one with swaybg (a
# wlr-layer-shell client on the background layer) via unbox's -s startup hook.
# It runs only if the image exists; put your image at the path below (a real file
# or a symlink), or override with UNBOX_WALLPAPER=/path/to/image.
WALLPAPER="${UNBOX_WALLPAPER:-$HOME/.config/unbox/wallpaper}"
if [ -f "$WALLPAPER" ]; then
exec dbus-run-session -- unbox -s "swaybg -i '$WALLPAPER' -m fill"
fi
exec dbus-run-session -- unbox
|