mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-04-20 03:29:01 +00:00
44 lines
969 B
Nix
44 lines
969 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
username,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.shell.components.walker;
|
|
in
|
|
{
|
|
options.shell.components.walker = {
|
|
enable = lib.mkEnableOption (lib.mdDoc "Enable a pre-configured walker setup");
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home-manager.users.${username} = {
|
|
wayland.windowManager.hyprland.settings = {
|
|
bindr = [ "SUPER,SUPER_L,exec,uwsm app -- ${lib.getExe pkgs.walker}" ];
|
|
/*
|
|
layerrule = [
|
|
# TODO: Add layer rules for walker
|
|
"blur, anyrun"
|
|
"ignorealpha 0.3, anyrun"
|
|
];
|
|
*/
|
|
};
|
|
programs.niri.settings.binds."Mod+Space".action.spawn = [ (lib.getExe pkgs.walker) ];
|
|
home.packages = with pkgs; [
|
|
wl-clipboard
|
|
];
|
|
programs.walker = {
|
|
enable = true;
|
|
runAsService = true;
|
|
config = {
|
|
close_when_open = true;
|
|
force_keyboard_focus = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|