Final update of my old configuration

- stylix
- cleanup and fixes
This commit is contained in:
foglar 2025-05-05 15:46:45 +02:00
parent 07b0d1b1b0
commit a687588378
16 changed files with 224 additions and 197 deletions

View File

@ -47,7 +47,7 @@
- [ ] sddm theme - [ ] sddm theme
- [ ] add new themes, and polish old ones (lain, rei, and psychopass) - [ ] add new themes, and polish old ones (lain, rei, and psychopass)
- [ ] ghostty configuration add - [ ] ghostty configuration add
- [ ] change type of loading configuration using all .nix files in directory instead of manually specifing them - [x] change type of loading configuration using all .nix files in directory instead of manually specifing them
- [ ] update my home page and create new web - [ ] update my home page and create new web
- [ ] fix kde theme in stylix - [ ] fix kde theme in stylix

View File

@ -12,17 +12,17 @@
shell = "zsh"; # bash, zsh shell = "zsh"; # bash, zsh
terminal = "kitty"; # kitty, alacritty, gnome-terminal terminal = "kitty"; # kitty, alacritty, gnome-terminal
browser = "zen"; # firefox, librewolf, qutebrowser, zen browser = "librewolf"; # firefox, librewolf, qutebrowser, zen
editor = "neovim"; # neovim, vscode editor = "neovim"; # neovim, vscode
# List all themes: $ nix build nixpkgs#base16-schemes && ls result/share/themes # List all themes: $ nix build nixpkgs#base16-schemes && ls result/share/themes
theme = "catppuccin-mocha"; # catppuccin-mocha, tokyo-night-dark, one-dark, purple-dawn theme = "catppuccin-mocha"; # catppuccin-mocha, lain-blue, one-dark, purple-dawn
background = background =
if userSettings.theme == "catppuccin-mocha" if userSettings.theme == "catppuccin-mocha"
then "aurora_borealis.png" then "aurora_borealis.png"
else if "evangelion-blood" == userSettings.theme else if "evangelion-blood" == userSettings.theme
then "evangelion.jpg" then "evangelion.jpg"
else if "tokyo-night-dark" == userSettings.theme else if "lain-blue" == userSettings.theme
then "lain.png" then "lain.png"
else if "purple-dawn" == userSettings.theme else if "purple-dawn" == userSettings.theme
then "purpledawn.png" then "purpledawn.png"

View File

@ -18,7 +18,7 @@
# Home manager # Home manager
home-manager = { home-manager = {
extraSpecialArgs = {inherit inputs system pkgs pkgs-stable userSettings;}; extraSpecialArgs = {inherit inputs system pkgs pkgs-stable userSettings;};
backupFileExtension = "bk"; backupFileExtension = "backup";
users = { users = {
${userSettings.username} = import ./home.nix; ${userSettings.username} = import ./home.nix;
}; };
@ -103,8 +103,6 @@
++ ( ++ (
with pkgs; [ with pkgs; [
gcc gcc
corefonts
uutils-coreutils-noprefix
] ]
); );

View File

@ -82,8 +82,6 @@
enableBashIntegration = true; enableBashIntegration = true;
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
home-manager.enable = true;
}; };
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
} }

View File

@ -75,7 +75,7 @@
bat.enable = true; bat.enable = true;
btop.enable = true; btop.enable = true;
fzf.enable = true; fzf.enable = true;
yazi.enable = true; yazi.enable = false;
direnv = { direnv = {
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;

View File

@ -31,6 +31,8 @@
wl-clipboard wl-clipboard
cliphist cliphist
bc bc
pavucontrol
nautilus
#swww #swww

View File

@ -565,10 +565,12 @@ in {
if [[ ! -f "$FILE" ]]; then if [[ ! -f "$FILE" ]]; then
touch "$FILE" touch "$FILE"
run_eww run_eww
killall waybar
else else
${EWW} --config "$CFG" close \ ${EWW} --config "$CFG" close \
background profile system clock uptime music apps logout sleep reboot poweroff folders bluetooth background profile system clock uptime music apps logout sleep reboot poweroff folders bluetooth
rm "$FILE" rm "$FILE"
waybar &
fi fi
'') '')

View File

@ -25,6 +25,8 @@
config = lib.mkIf config.desktop.hyprland.enable { config = lib.mkIf config.desktop.hyprland.enable {
desktop.hyprland = { desktop.hyprland = {
waybar.enable = lib.mkDefault true; waybar.enable = lib.mkDefault true;
hyprpanel.enable = lib.mkDefault false;
rofi = { rofi = {
enable = lib.mkDefault true; enable = lib.mkDefault true;
clipboard.enable = lib.mkDefault true; clipboard.enable = lib.mkDefault true;
@ -52,14 +54,14 @@
services.network-manager-applet.enable = true; services.network-manager-applet.enable = true;
services.playerctld.enable = true; services.playerctld.enable = true;
#services.dunst.enable = true; #services.dunst.enable = true;
#services.swaync = { services.swaync = {
# enable = true; enable = true;
# settings = { settings = {
# fit-to-screen = false; fit-to-screen = false;
# control-center-height = 500; control-center-height = 500;
# control-center-width = 250; control-center-width = 250;
# }; };
#}; };
# Home session variables # Home session variables
home.sessionVariables = { home.sessionVariables = {

View File

@ -50,7 +50,7 @@
echo "$battery_percentage% $battery_icon" echo "$battery_percentage% $battery_icon"
'') '')
(writeShellScriptBin "battery-hyprlock-legacy" '' (writeShellScriptBin "maxbat" ''
show_avg=0 show_avg=0
show_charging=0 show_charging=0
show_plugged=0 show_plugged=0

View File

@ -1,15 +1,22 @@
{ {
inputs, inputs,
pkgs, pkgs,
lib,
config,
... ...
}: { }: {
imports = [inputs.hyprpanel.homeManagerModules.hyprpanel]; imports = [inputs.hyprpanel.homeManagerModules.hyprpanel];
options = {
desktop.hyprland.hyprpanel.enable = lib.mkEnableOption "Enable Hyprpanel";
};
config = lib.mkIf config.desktop.hyprland.hyprpanel.enable {
programs.hyprpanel = { programs.hyprpanel = {
enable = true; enable = false;
systemd.enable = true; #systemd.enable = true;
#overwrite.enable = true; #overwrite.enable = true;
hyprland.enable = true; hyprland.enable = false;
settings = { settings = {
}; };
}; };
@ -17,4 +24,5 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
hyprpanel hyprpanel
]; ];
};
} }

View File

@ -21,14 +21,12 @@
mainBar = { mainBar = {
layer = "bottom"; layer = "bottom";
position = "top"; position = "top";
height = 31; height = 20;
margin-top = 2;
exclusive = true; exclusive = true;
passthrough = false; passthrough = false;
gtk-layer-shell = true; gtk-layer-shell = true;
reload_style_on_change = true; reload_style_on_change = true;
output = [
"eDP-1"
];
modules-left = ["custom/padd" "custom/l_end" "cpu" "memory" "custom/r_end" "custom/l_end" "idle_inhibitor" "clock" "custom/r_end" "" "custom/padd"]; modules-left = ["custom/padd" "custom/l_end" "cpu" "memory" "custom/r_end" "custom/l_end" "idle_inhibitor" "clock" "custom/r_end" "" "custom/padd"];
modules-center = ["custom/padd" "" "custom/l_end" "hyprland/workspaces" "hyprland/window" "custom/r_end" "custom/padd"]; modules-center = ["custom/padd" "" "custom/l_end" "hyprland/workspaces" "hyprland/window" "custom/r_end" "custom/padd"];
modules-right = ["custom/padd" "custom/l_end" "backlight" "network" "bluetooth" "pulseaudio" "pulseaudio#microphone" "custom/r_end" "custom/l_end" "tray" "battery" "custom/r_end" "custom/l_end" "custom/notification" "custom/cliphist" "custom/power" "custom/r_end" "custom/padd"]; modules-right = ["custom/padd" "custom/l_end" "backlight" "network" "bluetooth" "pulseaudio" "pulseaudio#microphone" "custom/r_end" "custom/l_end" "tray" "battery" "custom/r_end" "custom/l_end" "custom/notification" "custom/cliphist" "custom/power" "custom/r_end" "custom/padd"];
@ -89,13 +87,10 @@
"bluetooth" = { "bluetooth" = {
format = ""; format = "";
#rotate": ${r_deg},
format-disabled = ""; format-disabled = "";
format-connected = " {num_connections}"; format-connected = " {num_connections}";
format-connected-battery = "{icon} {num_connections}"; format-connected-battery = "{icon} {num_connections}";
# "format-connected-battery" = "{icon} {device_alias}-{device_battery_percentage}%";
format-icons = ["󰥇" "󰤾" "󰤿" "󰥀" "󰥁" "󰥂" "󰥃" "󰥄" "󰥅" "󰥆" "󰥈"]; format-icons = ["󰥇" "󰤾" "󰤿" "󰥀" "󰥁" "󰥂" "󰥃" "󰥄" "󰥅" "󰥆" "󰥈"];
#"format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device If this config option is not defined or none of the devices in the list are connected, it will fall back to showing the last connected device.
tooltip-format = "{controller_alias}\n{num_connections} connected"; tooltip-format = "{controller_alias}\n{num_connections} connected";
tooltip-format-connected = "{controller_alias}\n{num_connections} connected\n\n{device_enumerate}"; tooltip-format-connected = "{controller_alias}\n{num_connections} connected\n\n{device_enumerate}";
tooltip-format-enumerate-connected = "{device_alias}"; tooltip-format-enumerate-connected = "{device_alias}";
@ -140,31 +135,22 @@
}; };
"battery" = { "battery" = {
interval = 1;
states = { states = {
good = 95; okay = 60;
warning = 30; warning = 30;
critical = 20; critical = 15;
supercritical = 9;
}; };
format = "{icon} {capacity}%"; format = "{icon}{capacity}%";
rotate = 0; rotate = 0;
format-charging = " {capacity}%"; format-charging = "{icon}󱐋{capacity}%";
format-plugged = " {capacity}%"; format-plugged = "{capacity}%";
format-alt = "{time} {icon}"; format-alt = "{icon}";
format-icons = [ format-icons = ["󰂃" "󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"];
"󰂎"
"󰁺"
"󰁻"
"󰁼"
"󰁽"
"󰁾"
"󰁿"
"󰂀"
"󰂁"
"󰂂"
"󰁹"
];
}; };
"backlight" = { "backlight" = {
device = "intel_backlight"; device = "intel_backlight";
rotate = 0; rotate = 0;
@ -310,106 +296,59 @@
style = '' style = ''
${ ${
if (userSettings.theme == "catppuccin-mocha") if (userSettings.theme=="catppuccin-mocha") then "
then "@define-color bar-bg rgba(0, 0, 0, 0); @define-color main-text rgba(170, 170, 200, 0.9);
@define-color main-bg #11111b; @define-color part-bg rgba(0, 0, 40, 0.5);
@define-color main-fg #cdd6f4; @define-color ws-fg rgba(200, 200, 200, 1);
@define-color wb-act-bg #a6adc8; @define-color ws-active-fg rgba(100, 255, 200, 1);
@define-color wb-act-fg #313244; @define-color ws-active-bg rgba(100, 100, 100, 0.2);
@define-color wb-hvr-bg #f5c2e7; @define-color ws-hover-fg rgba(255, 255, 255, 1);
@define-color wb-hvr-fg #313;" @define-color ws-hover-bg rgba(150, 150, 150, 0.3);"
else if userSettings.theme == "evangelion-blood" else if userSettings.theme=="lain-blue"
then "@define-color bar-bg rgba(0, 0, 0, 0);" then "
else "" @define-color main-text rgba(20, 150, 225, 0.9);
@define-color part-bg rgba(0, 40, 120, 0.5);
@define-color ws-fg rgba(200, 200, 200, 1);
@define-color ws-active-fg rgba(235, 235, 235, 1);
@define-color ws-active-bg rgba(100, 100, 100, 0.2);
@define-color ws-hover-fg rgba(255, 255, 255, 1);
@define-color ws-hover-bg rgba(150, 150, 150, 0.3);"
else if userSettings.theme=="evangelion-blood"
then "
@define-color main-text rgba(250, 85, 85, 0.9);
@define-color part-bg rgba(40, 0, 0, 0.5);
@define-color ws-fg rgba(200, 200, 200, 1);
@define-color ws-active-fg rgba(235, 235, 235, 1);
@define-color ws-active-bg rgba(200, 150, 150, 0.3);
@define-color ws-hover-fg rgba(255, 255, 255, 1);
@define-color ws-hover-bg rgba(250, 150, 150, 0.4);"
else if userSettings.theme=="purple-dawn"
then "
@define-color main-text rgba(200, 100, 200, 0.9);
@define-color part-bg rgba(30, 0, 40, 0.5);
@define-color ws-fg rgba(200, 100, 200, 1);
@define-color ws-active-fg rgba(255, 150, 200, 1);
@define-color ws-active-bg rgba(150, 100, 150, 0.4);
@define-color ws-hover-fg rgba(255, 175, 225, 1);
@define-color ws-hover-bg rgba(180, 120, 180, 0.5);"
else "
@define-color main-text rgba(200, 200, 200, 1);
@define-color part-bg rgba(0, 0, 0, 1);
@define-color ws-fg rgba(200, 200, 200, 1);
@define-color ws-active-fg rgba(235, 235, 235, 1);
@define-color ws-active-bg rgba(100, 100, 100, 0.4);
@define-color ws-hover-fg rgba(255, 255, 255, 1);
@define-color ws-hover-bg rgba(150, 150, 150, 0.5);"
} }
* { * {
border: none; border: none;
border-radius: 0px;
font-family: "JetBrainsMono Nerd Font"; font-family: "JetBrainsMono Nerd Font";
font-size: 12px;
min-height: 0;
font-weight: bold; font-weight: bold;
font-size: 10px;
min-height: 10px;
} }
window#waybar {
background: @bar-bg;
}
tooltip {
background: @main-bg;
color: @main-fg;
border-radius: 7px;
border-width: 0px;
}
#workspaces button {
box-shadow: none;
text-shadow: none;
padding: 0px;
border-radius: 9px;
margin-top: 3px;
margin-bottom: 3px;
margin-left: 0px;
padding-left: 3px;
padding-right: 3px;
margin-right: 0px;
color: @main-fg;
animation: ws_normal 20s ease-in-out 1;
}
#workspaces button.active {
background: @wb-act-bg;
color: @wb-act-fg;
margin-left: 3px;
padding-left: 12px;
padding-right: 12px;
margin-right: 3px;
animation: ws_active 20s ease-in-out 1;
transition: all 0.4s cubic-bezier(.55,-0.68,.48,1.682);
}
#workspaces button:hover {
background: @wb-hvr-bg;
color: @wb-hvr-fg;
animation: ws_hover 20s ease-in-out 1;
transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682);
}
#taskbar button {
box-shadow: none;
text-shadow: none;
padding: 0px;
border-radius: 9px;
margin-top: 3px;
margin-bottom: 3px;
margin-left: 0px;
padding-left: 3px;
padding-right: 3px;
margin-right: 0px;
color: @wb-color;
animation: tb_normal 20s ease-in-out 1;
}
#taskbar button.active {
background: @wb-act-bg;
color: @wb-act-color;
margin-left: 3px;
padding-left: 12px;
padding-right: 12px;
margin-right: 3px;
animation: tb_active 20s ease-in-out 1;
transition: all 0.4s cubic-bezier(.55,-0.68,.48,1.682);
}
#taskbar button:hover {
background: @wb-hvr-bg;
color: @wb-hvr-color;
animation: tb_hover 20s ease-in-out 1;
transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682);
}
#tray menu * {
min-height: 16px;
}
#tray menu separator {
min-height: 10px;
}
#backlight, #backlight,
#battery, #battery,
#bluetooth, #bluetooth,
@ -433,33 +372,69 @@
#tray, #tray,
#custom-updates, #custom-updates,
#custom-wallchange, #custom-wallchange,
#custom-wbar,
#window,
#workspaces, #workspaces,
#window,
#custom-l_end, #custom-l_end,
#custom-r_end, #custom-r_end,
#custom-sl_end, #custom-sl_end,
#custom-sr_end, #custom-sr_end,
#custom-rl_end, #custom-rl_end,
#custom-rr_end { #custom-rr_end {
color: @main-fg; color: @main-text;
background: @main-bg; background: @part-bg;
opacity: 1;
margin: 4px 0px 4px 0px;
padding-left: 4px; padding-left: 4px;
padding-right: 4px; padding-right: 4px;
margin: 0;
border: 0;
} }
#workspaces,
#taskbar { window#waybar {
background: transparent;
}
#workspaces button {
box-shadow: none;
text-shadow: none;
padding: 0px; padding: 0px;
border-radius: 9px;
margin-top: 3px;
margin-bottom: 3px;
margin-left: 0px;
padding-left: 3px;
padding-right: 3px;
margin-right: 0px;
color: @ws-fg;
} }
#workspaces button.active {
background: @ws-active-bg;
color: @ws-active-fg;
margin-left: 3px;
padding-left: 12px;
padding-right: 12px;
margin-right: 3px;
}
#workspaces button:hover {
background: @ws-hover-bg;
color: @ws-hover-fg;
}
tooltip {
color: @main-text;
background: @part-bg;
border-radius: 7px;
border-width: 0px;
}
#custom-r_end { #custom-r_end {
border-radius: 0px 21px 21px 0px; border-radius: 0px 20px 20px 0px;
margin-right: 9px; margin-right: 9px;
padding-right: 3px; padding-right: 3px;
} }
#custom-l_end { #custom-l_end {
border-radius: 21px 0px 0px 21px; border-radius: 20px 0px 0px 20px;
margin-left: 9px; margin-left: 9px;
padding-left: 3px; padding-left: 3px;
} }
@ -469,21 +444,61 @@
margin-right: 9px; margin-right: 9px;
padding-right: 3px; padding-right: 3px;
} }
#custom-sl_end { #custom-sl_end {
border-radius: 0px; border-radius: 0px;
margin-left: 9px; margin-left: 9px;
padding-left: 3px; padding-left: 3px;
} }
#custom-rr_end { #custom-rr_end {
border-radius: 0px 7px 7px 0px; border-radius: 0px 10px 10px 0px;
margin-right: 9px; margin-right: 9px;
padding-right: 3px; padding-right: 3px;
} }
#custom-rl_end { #custom-rl_end {
border-radius: 7px 0px 0px 7px; border-radius: 10px 0px 0px 10px;
margin-left: 9px; margin-left: 9px;
padding-left: 3px; padding-left: 3px;
} }
#battery {
color: rgba(0, 150, 0, 0.9);
padding-left: 0;
}
#battery.okay {
color: rgba(150, 150, 0, 0.9);
}
#battery.warning {
color: rgba(250, 100, 0, 0.9);
}
#battery.critical {
color: rgba(250, 0, 0, 0.9);
}
@keyframes supercritical {
from {
background: rgba(100, 0, 0, 1);
}
to {
background: rgba(250, 220, 0, 1);
}
}
#battery.supercritical:not(.charging) {
color: #000;
background: rgba(100, 0, 0, 1);
animation: supercritical 0.2s infinite alternate;
}
#battery.charging {
color: rgba(0, 150, 0, 0.9);
}
''; '';
}; };
}; };

View File

@ -9,9 +9,7 @@
lib.mkEnableOption "Enable Vencord"; lib.mkEnableOption "Enable Vencord";
}; };
imports = [ imports = [inputs.nixcord.homeModules.nixcord];
inputs.nixcord.homeManagerModules.nixcord
];
config = lib.mkIf config.program.vencord.enable { config = lib.mkIf config.program.vencord.enable {
services.arrpc.enable = true; services.arrpc.enable = true;

View File

@ -38,7 +38,7 @@
waybar = { waybar = {
enable = true; enable = false;
enableCenterBackColors = false; enableCenterBackColors = false;
enableLeftBackColors = false; enableLeftBackColors = false;
enableRightBackColors = false; enableRightBackColors = false;

View File

@ -21,7 +21,7 @@
settings = { settings = {
"$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json"; "$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json";
"logo" = "logo" =
if userSettings.theme == "evangelion-blood" || userSettings.theme == "tokyo-night-dark" if userSettings.theme == "evangelion-blood" || userSettings.theme == "lain-blue"
then { then {
"source" = "/home/shinya/.config/fastfetch/logo.png"; "source" = "/home/shinya/.config/fastfetch/logo.png";
"width" = "width" =
@ -33,7 +33,10 @@
then 18 then 18
else 19; else 19;
"padding" = { "padding" = {
"top" = if userSettings.theme == "evangelion-blood" then 1 else 0; "top" =
if userSettings.theme == "evangelion-blood" || userSettings.theme == "lain-blue"
then 1
else 0;
}; };
} }
else { else {

View File

@ -14,6 +14,7 @@
noto-fonts-emoji noto-fonts-emoji
nerd-fonts.jetbrains-mono nerd-fonts.jetbrains-mono
monaspace monaspace
corefonts
]; ];
}; };
} }

View File

@ -54,7 +54,7 @@
base0E = "f0d0d0"; base0E = "f0d0d0";
base0F = "f0e0e0"; base0F = "f0e0e0";
} }
else if userSettings.theme == "tokyo-night-dark" else if userSettings.theme == "lain-blue"
then { then {
base00 = "011d33"; base00 = "011d33";
base01 = "1a4a6e"; base01 = "1a4a6e";
@ -138,13 +138,13 @@
logo = logo =
if userSettings.theme == "evangelion-blood" if userSettings.theme == "evangelion-blood"
then ../../../config/nerv.png then ../../../config/nerv.png
else if (userSettings.theme == "tokyo-night-dark") else if (userSettings.theme == "lain-blue")
then ../../../config/copeland.png then ../../../config/copeland.png
else if (userSettings.theme == "purple-dawn") else if (userSettings.theme == "purple-dawn")
then ../../../config/ram.png then ../../../config/ram.png
else ../../../config/mars.png; else ../../../config/mars.png;
logoAnimated = logoAnimated =
if "evangelion-blood" == userSettings.theme || "tokyo-night-dark" == userSettings.theme || "purple-dawn" == userSettings.theme if "evangelion-blood" == userSettings.theme || "lain-blue" == userSettings.theme || "purple-dawn" == userSettings.theme
then false then false
else true; else true;
}; };