nixos/home/hyprland/anyrun.nix

83 lines
1.9 KiB
Nix
Raw Normal View History

{ config, pkgs, anyrun, ... }: {
imports = [ anyrun.homeManagerModules.default ./kidex.nix ];
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
dictionary
kidex
2023-09-23 18:31:08 +01:00
randr
rink
shell
symbols
translate
websearch
2023-09-23 18:31:08 +01:00
];
width.fraction = 0.3;
y.absolute = 15;
hidePluginInfo = true;
closeOnClick = true;
};
extraCss = ''
* {
all: unset;
font-family: "Fira Sans";
2023-09-23 18:31:08 +01:00
font-size: 1.3rem;
}
#window,
#match,
#entry,
#plugin,
#main { background: transparent; }
#match.activatable {
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 {
border-radius: 10px;
padding: .3rem;
margin-top: .01rem;
margin-bottom: 0;
}
#match:selected, #match:hover, #plugin:hover {
background: rgba(202, 211, 245, .1);
2023-09-23 18:31:08 +01:00
}
#entry {
background: rgba(183, 189, 248, .05);
border: 1px solid rgba(183, 189, 248, .1);
border-radius: 10px;
2023-09-23 18:31:08 +01:00
margin: .3rem;
padding: .3rem 1rem;
}
list > #plugin {
border-radius: 16px;
margin: 0 .3rem;
}
list > #plugin:first-child { margin-top: .3rem; }
list > #plugin:last-child { margin-bottom: .3rem; }
list > #plugin:hover { padding: .6rem; }
box#main {
background: rgba(36, 39, 58, .5);
box-shadow: inset 0 0 0 1px rgba(183, 189, 248, .1), 0 0 0 1px rgba(36, 39, 58, .5);
border-radius: 10px;
2023-09-23 18:31:08 +01:00
padding: .3rem;
}
'';
};
}