nxricelib

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-04-19 17:28:08 +02:00
parent 1683946235
commit bf7848df01
9 changed files with 157 additions and 111 deletions

View File

@@ -63,17 +63,6 @@
[initial_class_active]
[workspaces_name]
10 = "ten"
4 = "four"
8 = "eight"
9 = "nine"
6 = "six"
1 = "one"
3 = "three"
2 = "two"
0 = "zero"
7 = "seven"
5 = "five"
[title_in_class]
[title_in_class_active]
@@ -87,7 +76,6 @@
[exclude]
"(?i)fcitx" = ".*"
aProgram = "^$"
"ueberzug.*" = ""
"" = "^$"
"[Ss]team" = "^(Friends List.*)?$"
"explorer.exe" = ".*"
@@ -97,7 +85,7 @@
dedup = false
dedup_inactive_fullscreen = false
delim = " "
workspace = "{id}: {clients}"
workspace = "{id}:{clients}"
workspace_empty = "{id}"
client = "{icon}"
client_fullscreen = "{icon}"

View File

@@ -1,9 +1,9 @@
{ config, pkgs, pkgs-unstable, inputs, host, nvidia, rice, lib, ... }:
let
animation-speed = "2";
transparency = rice.transparency;
transparency = builtins.toString rice.transparency;
gap-size = 10;
rounding = 3;
rounding = rice.rounding;
border-width = 3;
monitors = {
xps = {
@@ -143,8 +143,8 @@ in
gaps_in = builtins.div gap-size 2;
gaps_out = gap-size;
border_size = border-width;
"col.active_border" = "rgba(${rice.color.red}ff) rgba(${rice.color.bright-cyan}ff) 45deg";
"col.inactive_border" = "rgba(${rice.color.black}ff)";
"col.active_border" = "rgba(${rice.lib.nohash rice.color.red}ff) rgba(${rice.lib.nohash rice.color.cyan}ff) 90deg";
"col.inactive_border" = "rgba(${rice.lib.nohash rice.color.black}ff)";
cursor_inactive_timeout = 10;
@@ -159,8 +159,8 @@ in
shadow_range = "20";
shadow_offset = "0 0";
shadow_render_power = "4";
"col.shadow" = "rgba(${rice.color.red}ff)";
"col.shadow_inactive" = "rgba(${rice.color.black}ff)";
"col.shadow" = "rgba(${rice.lib.nohash rice.color.red}ff)";
"col.shadow_inactive" = "rgba(${rice.lib.nohash rice.color.black}ff)";
active_opacity = "1.0";
inactive_opacity = "1.0";
@@ -239,7 +239,7 @@ in
windowrulev2 = [
"opacity ${transparency},class:^(com.chatterino.*)$"
"opacity ${transparency},class:^(chatterino)$"
"bordercolor rgba(${rice.color.bright-magenta}ff), pinned:1"
"bordercolor rgba(${rice.lib.nohash rice.color.bright-magenta}ff), pinned:1"
];
windowrule = [
@@ -250,8 +250,8 @@ in
"opacity ${transparency}, neovide"
"opacity ${transparency}, obsidian"
"opacity ${transparency}, zathura"
"bordercolor rgba(${rice.color.foreground}ff) rgba(${rice.color.background}b2), Alacritty"
"bordercolor rgba(${rice.color.foreground}ff) rgba(${rice.color.background}b2), Kitty"
"bordercolor rgba(${rice.lib.nohash rice.color.foreground}ff) rgba(${rice.lib.nohash rice.color.background}${rice.lib.float-to-drune rice.transparency}), Alacritty"
"bordercolor rgba(${rice.lib.nohash rice.color.foreground}ff) rgba(${rice.lib.nohash rice.color.background}${rice.lib.float-to-drune rice.transparency}), Kitty"
"opacity ${transparency}, discord"
"opacity ${transparency}, vesktop"
"opacity ${transparency}, Element"
@@ -313,8 +313,8 @@ in
# "SUPER, F10, hyprload,update"
"SUPER, F11, exec, waybar"
"SUPER SHIFT, F11, exec, pkill waybar "
"SUPER, F12, exec, hyprland-autoname-workspaces --migrate-config &"
"SUPER SHIFT, F12, exec, pkill hyprland-autoname-workspaces "
"SUPER, F12, exec, hyprland-autoname-workspaces"
"SUPER SHIFT, F12, exec, pkill -9 hyprland-autoname-workspaces "
###########################################################################
## ROW 1:
@@ -778,7 +778,7 @@ in
hyprexpo {
columns = 5
gap_size = ${builtins.toString gap-size}
bg_col = rgb(${rice.color.background})
bg_col = rgb(${rice.lib.nohash rice.color.background})
workspace_method = first 10 # [center/first] [workspace] e.g. first 1 or center m+1
enable_gesture = false # laptop touchpad, 4 fingers

View File

@@ -9,28 +9,31 @@ in
programs.kitty = {
enable = true;
font = rice.font.code;
font = {
name = rice.font.code.name2;
package = rice.font.code.package;
};
settings = {
background = "#${rice.color.background}";
foreground = "#${rice.color.foreground}";
cursor = "#${rice.color.foreground}";
color0 = "#${rice.color.black}";
color8 = "#${rice.color.bright-black}";
color1 = "#${rice.color.red}";
color9 = "#${rice.color.bright-red}";
color2 = "#${rice.color.green}";
color10 = "#${rice.color.bright-green}";
color3 = "#${rice.color.yellow}";
color11 = "#${rice.color.bright-yellow}";
color4 = "#${rice.color.blue}";
color12 = "#${rice.color.bright-blue}";
color5 = "#${rice.color.magenta}";
color13 = "#${rice.color.bright-magenta}";
color6 = "#${rice.color.cyan}";
color14 = "#${rice.color.bright-cyan}";
color7 = "#${rice.color.white}";
color15 = "#${rice.color.bright-white}";
background_opacity = rice.transparency;
background = rice.color.background;
foreground = rice.color.foreground;
cursor = rice.color.foreground;
color0 = rice.color.black;
color8 = rice.color.bright-black;
color1 = rice.color.red;
color9 = rice.color.bright-red;
color2 = rice.color.green;
color10 = rice.color.bright-green;
color3 = rice.color.yellow;
color11 = rice.color.bright-yellow;
color4 = rice.color.blue;
color12 = rice.color.bright-blue;
color5 = rice.color.magenta;
color13 = rice.color.bright-magenta;
color6 = rice.color.cyan;
color14 = rice.color.bright-cyan;
color7 = rice.color.white;
color15 = rice.color.bright-white;
background_opacity = builtins.toString rice.transparency;
transparency = true;
scroll_multiplier = 9;
window_padding_width = 5;

View File

@@ -11,6 +11,6 @@
backgroundColor = "#${rice.color.background}";
textColor = "#${rice.color.foreground}";
borderColor = "#${rice.color.border}";
font = rice.font.code.name;
font = rice.font.code.name2;
};
}

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib, system, user, allowed, secrets, ... }:
{ config, pkgs, lib, user, rice, allowed, ... }:
{
home.packages = [
@@ -78,7 +78,7 @@
];
userSettings = {
workbench.colorTheme = "Just Black";
editor.fontFamily = "'CaskaydiaCove Nerd Font', 'monospace', monospace";
editor.fontFamily = "'${rice.font.code.name2}', 'monospace', monospace";
emote.SSH.useLocalServer = false;
};
enableUpdateCheck = false;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, rice, ... }:
let
in
{
@@ -60,6 +60,7 @@ in
bar = {
height = 20;
layer = "top";
# position = "top";
position = "bottom";
margin-top = 0;
margin-left = 0;
@@ -153,30 +154,29 @@ in
];
};
network = {
format-wifi = " {essid}";
format-ethernet = " Wired";
format-disconnected = " Disconnected";
format-wifi = " {essid}";
format-ethernet = "󰈀 Wired";
format-disconnected = "󰌙 Disconnected";
};
wireplumber = {
format = "󰕾 {volume}%";
format-muted = " Muted";
format-muted = " Muted";
};
};
};
style = ''
* {
font-family: Atkinson Hyperlegible, Caskaydia Cove NF, Noto Sans;
font-weight: bold;
font-size: 1.01em;
font-family: ${rice.font.code.name2};
font-size: 1em;
min-height: 0;
}
window#waybar {
background-color: rgba(0, 0, 0, 0.85);
background-color: rgba(${rice.lib.hex-to-rgb-comma-string rice.color.background},${builtins.toString rice.transparency});
transition-duration: 0.5s;
padding: 0.1em 1em;
padding-top: 0.1em;
border: 0px solid transparent;
border: None;
}
#clock,
@@ -195,40 +195,34 @@ in
#workspaces {
padding: 0px 3px;
margin-top: 0.3em;
border-radius: 0.8em;
color: white;
}
#window {
font-weight: normal;
border-radius: ${builtins.toString rice.rounding}px;
color: rgb(${rice.lib.hex-to-rgb-comma-string rice.color.foreground});
}
#workspaces button {
color: grey;
color: rgb(${rice.lib.hex-to-rgb-comma-string rice.color.bright-black});
padding: 0px 10px;
margin: 1px;
border-radius: 0.2em;
border: 0px solid transparent;
}
#workspaces button.focused {
background-color: darkred;
border-radius: ${builtins.toString rice.rounding}px;
border: None;
}
#workspaces button:hover {
background-color: green;
color: rgb(${rice.lib.hex-to-rgb-comma-string rice.color.background});
background-color: rgba(${rice.lib.hex-to-rgb-comma-string rice.color.foreground},${builtins.toString rice.transparency});
}
#workspaces button.active {
color: white;
color: rgb(${rice.lib.hex-to-rgb-comma-string rice.color.foreground});
background-color: rgba(${rice.lib.hex-to-rgb-comma-string rice.color.background},${builtins.toString rice.transparency});
}
#workspaces button.urgent {
background-color: darkorchid;
background-color: rgba(${rice.lib.hex-to-rgb-comma-string rice.color.magenta},${builtins.toString rice.transparency});
}
#custom-mode {
color: crimson;
color: rgb(${rice.lib.hex-to-rgb-comma-string rice.color.red});
}
#cpu {

View File

@@ -12,7 +12,7 @@
font-family: ${rice.font.code.name}, monospace;
font-size: 12pt;
color: ${rice.color.foreground};
background-color: rgba(0, 0, 0, ${rice.transparency});
background-color: rgba(0, 0, 0, ${builtins.toString rice.transparency});
}
button {