try better cgroups for fuzzel apps

note that this only half works because niri won't put the process in the
cgroup if it forks too quickly
This commit is contained in:
nora 2026-06-06 23:45:20 +02:00
parent 29119bf74f
commit 8ed10881f8
2 changed files with 8 additions and 1 deletions

View file

@ -356,7 +356,7 @@ binds {
// Suggested binds for running programs: terminal, app launcher, screen locker. // Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+T { spawn "alacritty"; } Mod+T { spawn "alacritty"; }
Mod+D { spawn "fuzzel"; } Mod+D { spawn "fuzzel-in-niri"; }
Super+Alt+L { spawn "lock-and-power-off-screen"; } Super+Alt+L { spawn "lock-and-power-off-screen"; }
// You can also use a shell. Do this if you need pipes, multiple commands, etc. // You can also use a shell. Do this if you need pipes, multiple commands, etc.

View file

@ -3,6 +3,7 @@
{ pkgs { pkgs
, inputs , inputs
, lib
, ... , ...
}: }:
let let
@ -67,6 +68,12 @@ in
exec swaylock exec swaylock
''; '';
}) })
(pkgs.writeShellApplication {
name = "fuzzel-in-niri";
text = ''
${lib.getExe pkgs.fuzzel} --launch-prefix "${lib.getExe pkgs.niri} msg action spawn --"
'';
})
(pkgs.writeShellApplication { (pkgs.writeShellApplication {
name = "shell.nix"; name = "shell.nix";
text = '' text = ''