added stuff

This commit is contained in:
vali 2024-04-09 23:11:33 +02:00
commit 7d4f626b7d
907 changed files with 70990 additions and 0 deletions

View file

@ -0,0 +1,126 @@
{
inputs,
inputs',
osConfig,
pkgs,
lib,
...
}: let
inherit (lib) mkIf;
inherit (osConfig) modules;
env = modules.usrEnv;
in {
imports = [inputs.anyrun.homeManagerModules.default];
config = mkIf env.programs.launchers.anyrun.enable {
programs.anyrun = {
enable = true;
config = {
plugins = with inputs'.anyrun.packages; [
applications
rink
translate
randr
shell
symbols
translate
inputs'.anyrun-nixos-options.packages.default
];
# the x coordinate of the runner
#x.relative = 800;
# the y coordinate of the runner
#y.absolute = 500.0;
y.fraction = 0.02;
# Hide match and plugin info icons
hideIcons = false;
# ignore exclusive zones, i.e. Waybar
ignoreExclusiveZones = false;
# Layer shell layer: Background, Bottom, Top, Overlay
layer = "overlay";
# Hide the plugin info panel
hidePluginInfo = false;
# Close window when a click outside the main box is received
closeOnClick = false;
# Show search results immediately when Anyrun starts
showResultsImmediately = false;
# Limit amount of entries shown in total
maxEntries = 10;
};
extraConfigFiles = {
"applications.ron".text = ''
Config(
// Also show the Desktop Actions defined in the desktop files, e.g. "New Window" from LibreWolf
desktop_actions: true,
max_entries: 10,
// The terminal used for running terminal based desktop entries, if left as `None` a static list of terminals is used
// to determine what terminal to use.
terminal: Some("footclient"),
)
'';
"randr.ron".text = ''
Config(
prefix: ":ra",
max_entries: 5,
)
'';
"symbols.ron".text = ''
Config(
// The prefix that the search needs to begin with to yield symbol results
prefix: ":sy",
// Custom user defined symbols to be included along the unicode symbols
symbols: {
// "name": "text to be copied"
"shrug": "¯\\_()_/¯",
},
// The number of entries to be displayed
max_entries: 5,
)
'';
"translate.ron".text = ''
Config(
prefix: ":tr",
language_delimiter: ">",
max_entries: 3,
)
'';
"nixos-options.ron".text = let
nixos-options = osConfig.system.build.manual.optionsJSON + "/share/doc/nixos/options.json";
neovim-flake-options = inputs'.neovim-flake.packages.docs-json + "/share/doc/neovim-flake/options.json";
options = builtins.toJSON {
":nix" = [nixos-options];
":vim" = [neovim-flake-options];
};
in ''
Config(
options: ${options},
min_score: 5,
max_entries: Some(3),
)
'';
};
# this compiles the SCSS file from the given path into CSS
# by default, `-t expanded` as the args to the sass compiler
extraCss = builtins.readFile (lib.compileSCSS pkgs {
name = "style-dark";
source = ./styles/dark.scss;
});
};
};
}

View file

@ -0,0 +1,43 @@
$fontSize: 1.3rem;
$fontFamily: Lexend;
$transparentColor: transparent;
$rgbaColor: rgba(203, 166, 247, 0.7);
$bgColor: rgba(30, 30, 46, 1);
$borderColor: #28283d;
$borderRadius: 16px;
$paddingValue: 8px;
* {
transition: 200ms ease;
font-family: $fontFamily;
font-size: $fontSize;
}
#window,
#match,
#entry,
#plugin,
#main {
background: $transparentColor;
}
#match:selected {
background: $rgbaColor;
}
#match {
padding: 3px;
border-radius: $borderRadius;
}
#entry,
#plugin:hover {
border-radius: $borderRadius;
}
box#main {
background: $bgColor;
border: 1px solid $borderColor;
border-radius: $borderRadius;
padding: $paddingValue;
}