mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: meep
This commit is contained in:
parent
779c3c4098
commit
4477a98282
5 changed files with 114 additions and 30 deletions
42
home/environments/niri/anyrun.nix
Normal file
42
home/environments/niri/anyrun.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.programs.anyrun;
|
||||
inherit (lib.meta) getExe;
|
||||
in {
|
||||
programs.niri.settings.binds = {
|
||||
"Mod+D".action = let
|
||||
sh = config.lib.niri.actions.spawn "sh" "-c";
|
||||
in
|
||||
sh (getExe cfg.package);
|
||||
};
|
||||
programs.anyrun = {
|
||||
enable = true;
|
||||
config = {
|
||||
x = {fraction = 0.5;};
|
||||
y = {fraction = 0.3;};
|
||||
width = {fraction = 0.3;};
|
||||
hideIcons = false;
|
||||
ignoreExclusiveZones = false;
|
||||
layer = "overlay";
|
||||
hidePluginInfo = false;
|
||||
closeOnClick = false;
|
||||
showResultsImmediately = true;
|
||||
maxEntries = null;
|
||||
plugins = let
|
||||
pluginNames = [
|
||||
"applications"
|
||||
"symbols"
|
||||
"niri_focus"
|
||||
"dictionary"
|
||||
"rink"
|
||||
"nix_run"
|
||||
];
|
||||
pluginLibs = map (p: "${cfg.package}/lib/lib${p}.so") pluginNames;
|
||||
in
|
||||
pluginLibs;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue