-- app-graphical.slice: normal GUI apps and short interactive helpers. Browser, -- launcher, screenshot tools, clipboard picker. User-facing, but expendable. -- background-graphical.slice: long-running noninteractive desktop jobs. Sync, -- indexers, preloaders, watchers. Must lose to humans under pressure. -- session-graphical.slice: session control plane. Lock/logout, network/audio UI, -- battery/status tools. Small, latency-sensitive, bad if killed mid-action. -- work.slice: interactive dev work. Terminal, editor, file manager, monitor, -- shells and child compilers. Big memory budget, normal priority. local app = "uwsm app -s app-graphical.slice -- " local session = "uwsm app -s session-graphical.slice -- " local work = "uwsm app -s work.slice -- " local wezterm = work .. "wezterm start" local function tui(slice, name) return slice .. "wezterm start --class " .. name .. " -- " .. name end return { terminal = wezterm, browser = app .. "firefox", editor = "nvim", launcher = app .. "hyprlauncher", file_manager = tui(work, "yazi"), bluetooth = tui(session, "bluetui"), wifi = tui(session, "impala"), system_monitor = tui(work, "btm"), audio_mixer = tui(session, "wiremix"), battery = session .. "wezterm start --class battery -- nu -c 'loop { clear; upower -i /org/freedesktop/UPower/devices/battery_BAT0; sleep 2sec }'", logout = session .. "hyprshutdown --dry-run", clipboard = app .. "bash -lc 'cliphist list | hyprlauncher --dmenu | cliphist decode | wl-copy'", screenshot_region = app .. "hyprshot -m region -z", screenshot_window = app .. "hyprshot -m window -z", screenshot_output = app .. "hyprshot -m output -z", screenshot_annotate = app .. "hyprshot -m region -z -- satty --filename", }