An app grid for a phone shell on niri, as a GTK4 layer-shell surface.
  • JavaScript 85.5%
  • Nix 14.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Henry-Hiles ab0704e682
Don't pass LD_PRELOAD on to launched apps
The wrapper preloads gtk4-layer-shell for the grid, but apps started from it
inherited that, which broke GTK 3 apps like LibreWolf with
"gdk_display_manager_get() was called before gtk_init()".
2026-11-17 00:20:50 -05:00
flake.lock App grid for a phone shell on niri 2026-11-16 21:04:44 -05:00
flake.nix App grid for a phone shell on niri 2026-11-16 21:04:44 -05:00
grid.js Don't pass LD_PRELOAD on to launched apps 2026-11-17 00:20:50 -05:00
LICENSE add GPL 3 2026-11-16 21:05:44 -05:00
package.nix App grid for a phone shell on niri 2026-11-16 21:04:44 -05:00
README.md App grid for a phone shell on niri 2026-11-16 21:04:44 -05:00

app-grid

An app grid for a phone shell on niri, as a GTK4 layer-shell surface.

It's meant to sit in niri's overview backdrop, behind the workspaces, so it shows up as the overview opens:

layer-rule {
    match namespace="^app-grid$"
    place-within-backdrop true
    backdrop-input true
}

place-within-backdrop on the bottom layer and backdrop-input aren't in upstream niri yet.

The grid's position assumes overview { zoom 0.25; workspace-anchor 0.15; }, see the constants at the top of grid.js.

Launching an app opens a splash window with its icon until the app's window opens, using niri msg event-stream. Set NIRI_BIN if niri isn't on PATH.