57 lines
1.4 KiB
Nix
Executable file
57 lines
1.4 KiB
Nix
Executable file
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
programs.tofi.enable = true;
|
|
|
|
# xdg.configFile."tofi/config".text = ''
|
|
# width = 100%
|
|
# height = 100%
|
|
# border-width = 0
|
|
# outline-width = 0
|
|
# padding-left = 35%
|
|
# padding-top = 30%
|
|
# result-spacing = 25
|
|
# num-results = 8
|
|
# font = monospace
|
|
# # background-color = #2a273fdd
|
|
# text-color = #e0def4
|
|
# input-color = #e0def4
|
|
# # text-cursor-color = #e0def4
|
|
# # selection-color = #c4a7e7
|
|
# prompt-background-padding = 5
|
|
# text-cursor-style = underscore
|
|
# text-cursor-corner-radius = 1
|
|
# # selection-match-color = #9ccfd8
|
|
# hide-cursor = false
|
|
# text-cursor = true
|
|
# '';
|
|
|
|
programs.tofi.settings = {
|
|
width = "35%";
|
|
height = "25%";
|
|
border-width = 1;
|
|
outline-width = 0;
|
|
corner-radius = 4;
|
|
# padding-left = "35%";
|
|
# padding-right = "30%";
|
|
result-spacing = 16;
|
|
num-results = 7;
|
|
prompt-background-padding = 5;
|
|
# text-cursor-tyle = "underscore";
|
|
text-cursor-corner-radius = 1;
|
|
hide-cursor = false;
|
|
text-cursor = true;
|
|
# font-size = lib.mkForce 18;
|
|
};
|
|
|
|
home.activation = {
|
|
# https://github.com/philj56/tofi/issues/115#issuecomment-1701748297
|
|
regenerateTofiCache = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
|
tofi_cache=${config.xdg.cacheHome}/tofi-drun
|
|
[[ -f "$tofi_cache" ]] && rm "$tofi_cache"
|
|
'';
|
|
};
|
|
}
|