2023-09-24 10:59:09 +01:00
|
|
|
{ config, pkgs, anyrun, ... }: {
|
|
|
|
imports = [ anyrun.homeManagerModules.default ./kidex.nix ];
|
2023-09-24 10:29:51 +01:00
|
|
|
home.packages = with pkgs; [ rink ];
|
2023-09-23 18:31:08 +01:00
|
|
|
programs.anyrun = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
|
|
|
plugins = with anyrun.packages.${pkgs.system}; [
|
|
|
|
applications
|
2023-09-24 10:29:51 +01:00
|
|
|
dictionary
|
2023-09-24 10:59:09 +01:00
|
|
|
kidex
|
2023-09-23 18:31:08 +01:00
|
|
|
randr
|
|
|
|
rink
|
|
|
|
shell
|
|
|
|
symbols
|
|
|
|
translate
|
2023-09-24 10:29:51 +01:00
|
|
|
websearch
|
2023-09-23 18:31:08 +01:00
|
|
|
];
|
|
|
|
width.fraction = 0.3;
|
|
|
|
y.absolute = 15;
|
|
|
|
hidePluginInfo = true;
|
|
|
|
closeOnClick = true;
|
|
|
|
};
|
2023-10-19 08:42:38 +01:00
|
|
|
extraConfigFiles."websearch.ron".text = ''
|
|
|
|
Config(
|
|
|
|
prefix: "!",
|
|
|
|
// Options: Google, Ecosia, Bing, DuckDuckGo, Custom
|
|
|
|
//
|
|
|
|
// Custom engines can be defined as such:
|
|
|
|
// Custom(
|
|
|
|
// name: "Searx",
|
|
|
|
// url: "searx.be/?q={}",
|
|
|
|
// )
|
|
|
|
//
|
|
|
|
// NOTE: `{}` is replaced by the search query and `https://` is automatically added in front.
|
|
|
|
engines: [DuckDuckGo]
|
|
|
|
)
|
|
|
|
'';
|
2023-10-19 08:09:53 +01:00
|
|
|
extraCss = with config.lib.stylix.colors.withHashtag; ''
|
2023-09-23 18:31:08 +01:00
|
|
|
* {
|
|
|
|
all: unset;
|
2023-10-19 08:09:53 +01:00
|
|
|
font-family: "${config.stylix.fonts.sansSerif.name}";
|
2023-09-23 18:31:08 +01:00
|
|
|
font-size: 1.3rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#window,
|
|
|
|
#match,
|
|
|
|
#entry,
|
|
|
|
#plugin,
|
2023-10-19 13:16:36 +01:00
|
|
|
#main {
|
|
|
|
background: transparent;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
2023-09-23 18:31:08 +01:00
|
|
|
|
|
|
|
#match.activatable {
|
2023-10-22 12:58:15 +01:00
|
|
|
border-radius: 10px;
|
2023-09-23 18:31:08 +01:00
|
|
|
padding: .3rem .9rem;
|
|
|
|
margin-top: .01rem;
|
|
|
|
}
|
|
|
|
#match.activatable:first-child { margin-top: .7rem; }
|
|
|
|
#match.activatable:last-child { margin-bottom: .6rem; }
|
|
|
|
|
|
|
|
#plugin:hover #match.activatable {
|
2023-10-22 12:58:15 +01:00
|
|
|
border-radius: 10px;
|
2023-09-23 18:31:08 +01:00
|
|
|
padding: .3rem;
|
|
|
|
margin-top: .01rem;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2023-10-19 13:16:36 +01:00
|
|
|
#match:hover, #plugin:hover { border: 1px solid ${base03}; }
|
|
|
|
|
|
|
|
#match:selected { border: 1px solid ${base0A}; }
|
2023-09-23 18:31:08 +01:00
|
|
|
|
|
|
|
#entry {
|
2023-10-19 08:09:53 +01:00
|
|
|
background: alpha(${base01}, .05);
|
|
|
|
border: 1px solid ${base03};
|
2023-10-22 12:58:15 +01:00
|
|
|
border-radius: 10px;
|
2023-09-23 18:31:08 +01:00
|
|
|
margin: .3rem;
|
|
|
|
padding: .3rem 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
list > #plugin {
|
2023-10-22 12:58:15 +01:00
|
|
|
border-radius: 10px;
|
2023-09-23 18:31:08 +01:00
|
|
|
margin: 0 .3rem;
|
|
|
|
}
|
|
|
|
list > #plugin:first-child { margin-top: .3rem; }
|
|
|
|
list > #plugin:last-child { margin-bottom: .3rem; }
|
|
|
|
list > #plugin:hover { padding: .6rem; }
|
|
|
|
|
|
|
|
box#main {
|
2023-10-19 08:09:53 +01:00
|
|
|
background: alpha(${base00}, .5);
|
2023-10-19 13:16:36 +01:00
|
|
|
box-shadow: inset 0 0 0 1px alpha(${base05}, .1), 0 0 0 1px alpha(${base00}, .5);
|
2023-10-22 12:58:15 +01:00
|
|
|
border-radius: 10px;
|
2023-09-23 18:31:08 +01:00
|
|
|
padding: .3rem;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|