mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-07-12 09:57:46 +02:00
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:
parent
29119bf74f
commit
8ed10881f8
2 changed files with 8 additions and 1 deletions
|
|
@ -356,7 +356,7 @@ binds {
|
|||
|
||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Mod+T { spawn "alacritty"; }
|
||||
Mod+D { spawn "fuzzel"; }
|
||||
Mod+D { spawn "fuzzel-in-niri"; }
|
||||
Super+Alt+L { spawn "lock-and-power-off-screen"; }
|
||||
|
||||
// You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
{ pkgs
|
||||
, inputs
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
|
|
@ -67,6 +68,12 @@ in
|
|||
exec swaylock
|
||||
'';
|
||||
})
|
||||
(pkgs.writeShellApplication {
|
||||
name = "fuzzel-in-niri";
|
||||
text = ''
|
||||
${lib.getExe pkgs.fuzzel} --launch-prefix "${lib.getExe pkgs.niri} msg action spawn --"
|
||||
'';
|
||||
})
|
||||
(pkgs.writeShellApplication {
|
||||
name = "shell.nix";
|
||||
text = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue