added stuff
This commit is contained in:
parent
6d31f5b5a1
commit
7d4f626b7d
907 changed files with 70990 additions and 0 deletions
|
@ -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;
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./rofi
|
||||
./tofi
|
||||
./anyrun
|
||||
];
|
||||
}
|
|
@ -0,0 +1,219 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
osConfig,
|
||||
inputs',
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf optionals;
|
||||
inherit (osConfig) modules meta;
|
||||
|
||||
env = modules.usrEnv;
|
||||
rofiPackage = with pkgs;
|
||||
if meta.isWayland
|
||||
then rofi-wayland
|
||||
else rofi;
|
||||
in {
|
||||
config = mkIf env.programs.launchers.rofi.enable {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = rofiPackage.override {
|
||||
plugins =
|
||||
[
|
||||
pkgs.rofi-rbw
|
||||
]
|
||||
++ optionals meta.isWayland (with inputs'.nyxpkgs.packages; [
|
||||
rofi-rbw-wayland
|
||||
rofi-calc-wayland
|
||||
rofi-emoji-wayland
|
||||
]);
|
||||
};
|
||||
font = "Iosevka Nerd Font 14";
|
||||
extraConfig = {
|
||||
modi = "drun,filebrowser,calc,emoji";
|
||||
drun-display-format = " {name} ";
|
||||
sidebar-mode = true;
|
||||
matching = "prefix";
|
||||
scroll-method = 0;
|
||||
disable-history = false;
|
||||
show-icons = true;
|
||||
|
||||
display-drun = " Run";
|
||||
display-run = " Run";
|
||||
display-filebrowser = " Files";
|
||||
display-calc = " Calculator";
|
||||
display-emoji = "💀 Emoji";
|
||||
};
|
||||
|
||||
theme = let
|
||||
inherit (osConfig.modules.style.colorScheme) colors;
|
||||
inherit (config.lib.formats.rasi) mkLiteral;
|
||||
in {
|
||||
"*" = {
|
||||
background = mkLiteral "#${colors.base02}";
|
||||
background-alt = mkLiteral "#${colors.base02}";
|
||||
foreground = mkLiteral "#${colors.base05}";
|
||||
selected = mkLiteral "#${colors.base00}";
|
||||
active = mkLiteral "#${colors.base0D}";
|
||||
urgent = mkLiteral "#${colors.base00}";
|
||||
};
|
||||
"window" = {
|
||||
transparency = "real";
|
||||
location = mkLiteral "center";
|
||||
anchor = mkLiteral "center";
|
||||
fullscreen = mkLiteral "false";
|
||||
width = mkLiteral "600px";
|
||||
x-offset = mkLiteral "0px";
|
||||
y-offset = mkLiteral "0px";
|
||||
enabled = mkLiteral "true";
|
||||
border-radius = mkLiteral "20px";
|
||||
border = mkLiteral "4px";
|
||||
border-color = mkLiteral "#${colors.base02}";
|
||||
cursor = "default";
|
||||
background-color = mkLiteral "@background";
|
||||
};
|
||||
"mainbox" = {
|
||||
enabled = true;
|
||||
spacing = mkLiteral "0px";
|
||||
background-color = mkLiteral "transparent";
|
||||
orientation = mkLiteral "vertical";
|
||||
children = mkLiteral "[inputbar,listbox]";
|
||||
};
|
||||
"listbox" = {
|
||||
spacing = mkLiteral "10px";
|
||||
padding = mkLiteral "10px 10px 10px 15px";
|
||||
background-color = mkLiteral "transparent";
|
||||
orientation = mkLiteral "vertical";
|
||||
children = mkLiteral "[message,listview]";
|
||||
};
|
||||
"inputbar" = {
|
||||
enabled = true;
|
||||
spacing = mkLiteral "10px";
|
||||
padding = mkLiteral "30px 20px 30px 20px";
|
||||
background-color = mkLiteral "@selected";
|
||||
text-color = mkLiteral "@foreground";
|
||||
orientation = mkLiteral "horizontal";
|
||||
children = mkLiteral "[prompt,entry]";
|
||||
};
|
||||
"entry" = {
|
||||
enabled = true;
|
||||
expand = true;
|
||||
width = mkLiteral "300px";
|
||||
padding = mkLiteral "12px 15px";
|
||||
border-radius = mkLiteral "15px";
|
||||
background-color = mkLiteral "@background-alt";
|
||||
text-color = mkLiteral "inherit";
|
||||
cursor = mkLiteral "text";
|
||||
placeholder = "Search";
|
||||
placeholder-color = mkLiteral "inherit";
|
||||
};
|
||||
"prompt" = {
|
||||
width = mkLiteral "64px";
|
||||
font = "Iosevka Nerd Font 13";
|
||||
padding = mkLiteral "10px 20px 10px 20px";
|
||||
border-radius = mkLiteral "15px";
|
||||
background-color = mkLiteral "@background-alt";
|
||||
text-color = mkLiteral "inherit";
|
||||
cursor = mkLiteral "pointer";
|
||||
};
|
||||
"mode-switcher" = {
|
||||
enabled = true;
|
||||
spacing = mkLiteral "10px";
|
||||
background-color = mkLiteral "transparent";
|
||||
text-color = mkLiteral "@foreground";
|
||||
};
|
||||
"button" = {
|
||||
width = mkLiteral "48px";
|
||||
font = "Iosevka Nerd Font 14";
|
||||
padding = mkLiteral "8px 5px 8px 8px";
|
||||
border-radius = mkLiteral "15px";
|
||||
background-color = mkLiteral "@background-alt";
|
||||
text-color = mkLiteral "inherit";
|
||||
cursor = mkLiteral "pointer";
|
||||
};
|
||||
"button selected" = {
|
||||
background-color = mkLiteral "@selected";
|
||||
text-color = mkLiteral "@foreground";
|
||||
};
|
||||
"listview" = {
|
||||
enabled = true;
|
||||
columns = 2;
|
||||
lines = 7;
|
||||
cycle = true;
|
||||
dynamic = true;
|
||||
srollbar = false;
|
||||
layout = mkLiteral "vertical";
|
||||
reverse = false;
|
||||
fixed-height = true;
|
||||
fixed-columns = false;
|
||||
spacing = mkLiteral "5px";
|
||||
background-color = mkLiteral "transparent";
|
||||
text-color = mkLiteral "@foreground";
|
||||
cursor = mkLiteral "default";
|
||||
};
|
||||
"element" = {
|
||||
enabled = true;
|
||||
spacing = mkLiteral "15px";
|
||||
padding = mkLiteral "7px";
|
||||
border-radius = mkLiteral "100%";
|
||||
background-color = mkLiteral "transparent";
|
||||
text-color = mkLiteral "@foreground";
|
||||
cursor = mkLiteral "pointer";
|
||||
};
|
||||
"element normal.normal" = {
|
||||
background-color = mkLiteral "inherit";
|
||||
text-color = mkLiteral "inherit";
|
||||
};
|
||||
"element normal.urgent" = {
|
||||
background-color = mkLiteral "@urgent";
|
||||
text-color = mkLiteral "@foreground";
|
||||
};
|
||||
"element normal.active" = {
|
||||
background-color = mkLiteral "@background";
|
||||
text-color = mkLiteral "@active";
|
||||
};
|
||||
"element selected.normal" = {
|
||||
background-color = mkLiteral "@selected";
|
||||
text-color = mkLiteral "@foreground";
|
||||
};
|
||||
"element selected.urgent" = {
|
||||
background-color = mkLiteral "@urgent";
|
||||
text-color = mkLiteral "@foreground";
|
||||
};
|
||||
"element selected.active" = {
|
||||
background-color = mkLiteral "@urgent";
|
||||
text-color = mkLiteral "@active";
|
||||
};
|
||||
"element-icon" = {
|
||||
background-color = mkLiteral "transparent";
|
||||
text-color = mkLiteral "inherit";
|
||||
size = mkLiteral "32px";
|
||||
cursor = mkLiteral "inherit";
|
||||
};
|
||||
"element-text" = {
|
||||
background-color = mkLiteral "transparent";
|
||||
text-color = mkLiteral "inherit";
|
||||
cursor = mkLiteral "inherit";
|
||||
vertical-align = mkLiteral "0.5";
|
||||
horizontal-align = mkLiteral "0.0";
|
||||
};
|
||||
"message" = {background-color = mkLiteral "transparent";};
|
||||
"textbox" = {
|
||||
padding = mkLiteral "12px";
|
||||
border-radius = mkLiteral "100%";
|
||||
background-color = mkLiteral "@background-alt";
|
||||
text-color = mkLiteral "@foreground";
|
||||
vertical-align = mkLiteral "0.5";
|
||||
horizontal-align = mkLiteral "0.0";
|
||||
};
|
||||
"error-message" = {
|
||||
padding = mkLiteral "12px";
|
||||
border-radius = mkLiteral "20px";
|
||||
background-color = mkLiteral "@background";
|
||||
text-color = mkLiteral "@foreground";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf getExe;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
env = modules.usrEnv;
|
||||
in {
|
||||
config = mkIf env.programs.launchers.tofi.enable {
|
||||
home.packages = with pkgs; [
|
||||
# for compatibility sake
|
||||
(pkgs.writeScriptBin "dmenu" ''exec ${getExe tofi}'')
|
||||
tofi
|
||||
wtype
|
||||
];
|
||||
|
||||
xdg.configFile."tofi/config".text = let
|
||||
inherit (osConfig.modules.style.colorScheme) colors;
|
||||
in ''
|
||||
font = Iosevka Nerd Font
|
||||
font-size = 13
|
||||
horizontal = true
|
||||
anchor = top
|
||||
width = 100%
|
||||
height = 40
|
||||
outline-width = 0
|
||||
border-width = 0
|
||||
min-input-width = 120
|
||||
result-spacing = 30
|
||||
padding-top = 10
|
||||
padding-bottom = 10
|
||||
padding-left = 20
|
||||
padding-right = 0
|
||||
margin-top = 0
|
||||
margin-bottom = 0
|
||||
margin-left = 15
|
||||
margin-right = 0
|
||||
prompt-text = " "
|
||||
prompt-padding = 30
|
||||
background-color = ${colors.base00}
|
||||
text-color = ${colors.base05}
|
||||
prompt-color = ${colors.base00}
|
||||
prompt-background = ${colors.base0D}
|
||||
prompt-background-padding = 4, 10
|
||||
prompt-background-corner-radius = 12
|
||||
input-background = ${colors.base02}
|
||||
input-background-padding = 4, 10
|
||||
input-background-corner-radius = 12
|
||||
selection-color = ${colors.base01}
|
||||
selection-background = ${colors.base0D}
|
||||
selection-background-padding = 4, 10
|
||||
selection-background-corner-radius = 12
|
||||
selection-match-color = ${colors.base05}
|
||||
clip-to-padding = false
|
||||
'';
|
||||
};
|
||||
}
|
1631
nyx/homes/notashelf/programs/graphical/launchers/tofi/emoji
Normal file
1631
nyx/homes/notashelf/programs/graphical/launchers/tofi/emoji
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue