2023-08-19 21:31:22 +02:00
|
|
|
{ inputs, pkgs, config, ... }: {
|
2023-08-17 09:31:46 +02:00
|
|
|
programs.anyrun = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
2023-08-19 21:13:34 +02:00
|
|
|
# {{{ Plugins
|
2023-08-17 09:31:46 +02:00
|
|
|
plugins = with inputs.anyrun.packages.${pkgs.system}; [
|
|
|
|
applications
|
|
|
|
dictionary
|
|
|
|
rink
|
|
|
|
stdin
|
2023-08-19 21:13:34 +02:00
|
|
|
# symbols # Looks ugly atm
|
|
|
|
# websearch
|
|
|
|
# inputs.anyrun-nixos-options.packages.${pkgs.system}.default # Idk how to set this up :(
|
2023-08-17 09:31:46 +02:00
|
|
|
];
|
2023-08-19 21:13:34 +02:00
|
|
|
# }}}
|
|
|
|
# {{{ Geometry
|
|
|
|
x.fraction = 0.5;
|
|
|
|
y.fraction = 0.25;
|
2023-08-17 09:31:46 +02:00
|
|
|
width.fraction = 0.5;
|
2023-08-19 21:13:34 +02:00
|
|
|
# }}}
|
|
|
|
|
|
|
|
hidePluginInfo = true;
|
|
|
|
closeOnClick = true;
|
|
|
|
showResultsImmediately = true;
|
|
|
|
maxEntries = 7;
|
2023-08-17 09:31:46 +02:00
|
|
|
};
|
2023-08-19 21:13:34 +02:00
|
|
|
|
2023-08-19 21:31:22 +02:00
|
|
|
extraCss = ''
|
|
|
|
/* {{{ Global overrides */
|
|
|
|
#window,
|
|
|
|
#entry,
|
|
|
|
#main,
|
|
|
|
#plugin,
|
|
|
|
#match {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
|
|
|
font-size: 2rem;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
/* }}} */
|
|
|
|
/* {{{ Transparent & raised surfaces */
|
|
|
|
#entry,
|
|
|
|
list#main,
|
|
|
|
row#match:selected {
|
|
|
|
box-shadow: 0.5px 0.5px 1.5px 1.5px rgba(0, 0, 0, 0.5);
|
2023-08-22 17:24:04 +02:00
|
|
|
border-radius: ${toString config.satellite.theming.rounding.radius}px;
|
2023-08-19 21:31:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#entry,
|
|
|
|
list#main {
|
|
|
|
margin: 1rem;
|
2023-08-22 17:24:04 +02:00
|
|
|
background: rgba(${config.satellite.theming.colors.rgba "base00"});
|
2023-08-19 21:31:22 +02:00
|
|
|
min-height: 1rem;
|
|
|
|
}
|
|
|
|
/* }}} */
|
|
|
|
/* {{{ Input */
|
|
|
|
#entry {
|
|
|
|
font-size: 2rem;
|
|
|
|
padding: 1rem;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
/* }}} */
|
|
|
|
/* {{{ Matches */
|
|
|
|
row#match {
|
|
|
|
margin: 0.7rem;
|
|
|
|
margin-bottom: 0.3rem;
|
|
|
|
color: ${config.lib.stylix.scheme.withHashtag.base05};
|
|
|
|
padding: 0.5rem;
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
row#match:last-child {
|
|
|
|
margin-bottom: 0.7rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#match:selected {
|
|
|
|
padding: 0.5rem;
|
|
|
|
color: ${config.lib.stylix.scheme.withHashtag.base05};
|
|
|
|
background: rgba(${config.satellite.theming.colors.rgb "base03"}, 0.2);
|
|
|
|
}
|
|
|
|
/* }}} */
|
|
|
|
'';
|
2023-08-17 09:31:46 +02:00
|
|
|
};
|
2023-08-19 21:13:34 +02:00
|
|
|
|
|
|
|
# # See [the readme](https://github.com/n3oney/anyrun-nixos-options) for anyrun-nixos-options.
|
|
|
|
# programs.anyrun.extraConfigFiles."nixos-options.ron".text = ''
|
|
|
|
# Config(
|
|
|
|
# options_path: "${config.system.build.manual.optionsJSON}/share/doc/nixos/options.json"
|
|
|
|
# )
|
|
|
|
# '';
|
2023-08-17 09:31:46 +02:00
|
|
|
}
|