2024-09-14 21:05:34 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.custom.programs.walker;
|
|
|
|
in {
|
|
|
|
options.custom.programs.walker.enable = mkOption {default = false;};
|
|
|
|
|
|
|
|
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
|
|
|
imports = [inputs.walker.homeManagerModules.default];
|
|
|
|
|
|
|
|
# https://github.com/abenz1267/walker
|
|
|
|
# https://github.com/abenz1267/walker?tab=readme-ov-file#building-from-source
|
|
|
|
# https://github.com/abenz1267/walker/blob/master/nix/hm-module.nix
|
|
|
|
programs.walker = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
#!! Service must be restarted for changes to take effect
|
|
|
|
#?? systemctl --user restart walker.service
|
|
|
|
runAsService = true;
|
|
|
|
|
2024-09-15 22:41:21 +00:00
|
|
|
# https://github.com/abenz1267/walker/wiki/Basic-Configuration
|
2024-09-14 21:05:34 +00:00
|
|
|
# https://github.com/abenz1267/walker/blob/master/internal/config/config.default.json
|
|
|
|
config = {
|
2024-09-15 22:41:21 +00:00
|
|
|
activation_mode.disabled = true; # Key chords
|
2024-09-24 23:23:22 +00:00
|
|
|
|
|
|
|
# BUG: Hover interrupts keyboard selections
|
|
|
|
ignore_mouse = true;
|
|
|
|
|
2024-09-14 21:05:34 +00:00
|
|
|
search.placeholder = "";
|
|
|
|
|
2024-09-24 23:21:27 +00:00
|
|
|
disabled = [
|
|
|
|
# BUG: Applications such as GNOME Files require multiple copy operations to register
|
|
|
|
"clipboard"
|
|
|
|
];
|
|
|
|
|
2024-09-15 22:41:21 +00:00
|
|
|
# https://github.com/abenz1267/walker/wiki/Modules
|
|
|
|
# https://www.nerdfonts.com/cheat-sheet
|
2024-09-14 21:05:34 +00:00
|
|
|
builtins = {
|
2024-09-15 22:41:21 +00:00
|
|
|
clipboard.switcher_only = true;
|
|
|
|
commands.switcher_only = true;
|
|
|
|
custom_commands.switcher_only = true;
|
2024-10-10 04:12:39 +00:00
|
|
|
runner.switcher_only = true;
|
2024-09-15 22:41:21 +00:00
|
|
|
ssh.switcher_only = true;
|
|
|
|
windows.switcher_only = true;
|
|
|
|
|
2024-09-14 21:05:34 +00:00
|
|
|
applications = {
|
2024-09-24 23:23:22 +00:00
|
|
|
# BUG: Ghost entries are still visible with single module
|
|
|
|
actions = false; # Desktop file actions
|
2024-09-15 22:41:21 +00:00
|
|
|
|
|
|
|
switcher_only = false;
|
|
|
|
};
|
|
|
|
|
2024-10-02 00:31:10 +00:00
|
|
|
calc = {
|
|
|
|
min_chars = 0;
|
|
|
|
switcher_only = true;
|
|
|
|
};
|
|
|
|
|
2024-09-15 22:41:21 +00:00
|
|
|
dmenu = {
|
2024-09-15 23:23:57 +00:00
|
|
|
keep_sort = true; # Disable sorting entries
|
2024-09-15 22:41:21 +00:00
|
|
|
placeholder = "Input";
|
|
|
|
switcher_only = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
emojis = {
|
|
|
|
placeholder = "Unicode";
|
2024-10-14 23:55:27 +00:00
|
|
|
switcher_only = true;
|
2024-09-15 22:41:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
finder = {
|
|
|
|
placeholder = "Files";
|
|
|
|
switcher_only = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
websearch = {
|
2024-09-24 23:23:22 +00:00
|
|
|
# TODO: Implement custom search engine
|
|
|
|
engines = ["duckduckgo"];
|
|
|
|
|
2024-09-15 22:41:21 +00:00
|
|
|
placeholder = "Search";
|
|
|
|
switcher_only = true;
|
2024-09-14 21:05:34 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# https://github.com/abenz1267/walker/wiki/Theming
|
|
|
|
theme = {
|
2024-09-21 15:47:31 +00:00
|
|
|
style = ''
|
|
|
|
#box {
|
|
|
|
font: larger ${config.custom.font.sans-serif};
|
|
|
|
}
|
|
|
|
|
|
|
|
${builtins.readFile ./style.css}
|
|
|
|
'';
|
2024-09-14 21:05:34 +00:00
|
|
|
|
2024-09-15 22:41:21 +00:00
|
|
|
# https://github.com/abenz1267/walker/blob/master/internal/config/layout.default.json
|
2024-10-14 23:55:27 +00:00
|
|
|
layout.ui.window.box.scroll.list = {
|
|
|
|
max_height = 500 / config.custom.scale;
|
|
|
|
min_width = 750 / config.custom.scale;
|
|
|
|
|
|
|
|
item = {
|
|
|
|
text.sub.hide = true; # Subtext
|
|
|
|
|
|
|
|
icon = {
|
|
|
|
icon_size = "largest"; # 128px
|
|
|
|
pixel_size = 32; # Downscale
|
2024-09-14 21:05:34 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-09-25 20:28:14 +00:00
|
|
|
|
|
|
|
# HACK: Allow child processes to live, otherwise applications launched through service are killed on stop
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/latest/systemd.kill.html#KillMode=
|
|
|
|
systemd.user.services.walker.Service.KillMode = "process";
|
2024-09-14 21:05:34 +00:00
|
|
|
};
|
|
|
|
}
|