cleanup WM setup
This commit is contained in:
parent
e8738e504f
commit
e9898b83cc
1 changed files with 447 additions and 398 deletions
74
modules/desktop/wm/launcher.nix
Normal file
74
modules/desktop/wm/launcher.nix
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
environment.etc = {
|
||||
"xdg/walker/config.toml".source = (pkgs.formats.toml { }).generate "walker.toml" {
|
||||
force_keyboard_focus = true;
|
||||
theme = "system";
|
||||
};
|
||||
|
||||
"xdg/walker/themes/system/style.css".source = pkgs.runCommand "walker-system-style.css" { } ''
|
||||
sed '/^@define-color/d' ${pkgs.walker.src}/resources/themes/default/style.css > $out
|
||||
'';
|
||||
|
||||
"xdg/elephant/elephant.toml".source = (pkgs.formats.toml { }).generate "elephant.toml" {
|
||||
terminal_cmd = "ptyxis -x";
|
||||
ignored_providers = [
|
||||
"1password"
|
||||
"aptpackages"
|
||||
"archlinuxpkgs"
|
||||
"bitwarden"
|
||||
"bluetooth"
|
||||
"bookmarks"
|
||||
"clipboard"
|
||||
"dnfpackages"
|
||||
"files"
|
||||
"menus"
|
||||
"niriactions"
|
||||
"nirisessions"
|
||||
"playerctl"
|
||||
"protonpass"
|
||||
"providerlist"
|
||||
"runner"
|
||||
"snippets"
|
||||
"symbols"
|
||||
"todo"
|
||||
"unicode"
|
||||
"windows"
|
||||
"wireplumber"
|
||||
];
|
||||
};
|
||||
|
||||
"xdg/elephant/websearch.toml".source =
|
||||
let
|
||||
inherit (config.programs.firefox.policies) SearchEngines;
|
||||
in
|
||||
(pkgs.formats.toml { }).generate "websearch.toml" {
|
||||
entries = map (
|
||||
engine:
|
||||
{
|
||||
name = engine.Name;
|
||||
url = lib.replaceStrings [ "{searchTerms}" ] [ "%TERM%" ] engine.URLTemplate;
|
||||
default = engine.Name == SearchEngines.Default;
|
||||
}
|
||||
// lib.optionalAttrs (engine ? Alias) { prefix = "${engine.Alias} "; }
|
||||
) SearchEngines.Add;
|
||||
};
|
||||
};
|
||||
|
||||
programs.fht-compositor = {
|
||||
sessionPrograms = {
|
||||
elephant = lib.getExe pkgs.elephant;
|
||||
walker = "walker --gapplication-service";
|
||||
};
|
||||
|
||||
settings.keybinds.Super_L = {
|
||||
action = "run-command";
|
||||
arg = "walker";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue