WIP: treewide: refactor to use flake-parts
first pass of my flake refactor using flake-parts
This commit is contained in:
parent
c487a997fe
commit
502c926f9f
77 changed files with 723 additions and 795 deletions
home/programs/anyrun
58
home/programs/anyrun/default.nix
Normal file
58
home/programs/anyrun/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
compileSCSS = name: source: "${pkgs.runCommandLocal name {} ''
|
||||
mkdir -p $out
|
||||
${lib.getExe pkgs.sassc} -t expanded '${source}' > $out/${name}.css
|
||||
''}/${name}.css";
|
||||
in {
|
||||
programs.anyrun = {
|
||||
enable = true;
|
||||
config = {
|
||||
plugins = with inputs.anyrun.packages.${pkgs.system}; [
|
||||
applications
|
||||
dictionary
|
||||
websearch
|
||||
];
|
||||
width = {fraction = 0.3;};
|
||||
hideIcons = false;
|
||||
ignoreExclusiveZones = false;
|
||||
layer = "overlay";
|
||||
hidePluginInfo = false;
|
||||
closeOnClick = false;
|
||||
showResultsImmediately = false;
|
||||
};
|
||||
extraCss = builtins.readFile (compileSCSS "style" ./style.scss);
|
||||
extraConfigFiles = {
|
||||
"dictionary.ron".text = ''
|
||||
Config(
|
||||
prefix: ":def",
|
||||
)
|
||||
'';
|
||||
"applications.ron".text = ''
|
||||
Config(
|
||||
desktop_actions: false,
|
||||
max_entries: 10,
|
||||
)
|
||||
'';
|
||||
"websearch.ron".text = ''
|
||||
Config(
|
||||
prefix: "?",
|
||||
engines: [
|
||||
Custom(
|
||||
name: "SearXNG",
|
||||
url: "100.121.201.47:8100/search?q={}",
|
||||
),
|
||||
Custom(
|
||||
name: "nix packages",
|
||||
url: "search.nixos.org/packages?query={}&channel=unstable",
|
||||
),
|
||||
],
|
||||
)
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
38
home/programs/anyrun/style.scss
Normal file
38
home/programs/anyrun/style.scss
Normal file
|
@ -0,0 +1,38 @@
|
|||
* {
|
||||
all: unset;
|
||||
transition: 200ms ease-out;
|
||||
color: #cdd6f4;
|
||||
font-family: JetBrainsMono NF Medium;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
#window,
|
||||
#match,
|
||||
#entry,
|
||||
#plugin,
|
||||
#main {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#main {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
#match:hover,
|
||||
#match:selected {
|
||||
background: #45475a;
|
||||
border-radius: 5px;
|
||||
padding: 0.4rem
|
||||
}
|
||||
|
||||
entry#entry {
|
||||
border-color: transparent;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
box#main {
|
||||
background: #1e1e2e;
|
||||
border: 3px solid #f5c2e7;
|
||||
border-radius: 12px;
|
||||
padding: 0.3rem;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue