laptop: refactor
This commit is contained in:
parent
193138be43
commit
8498de2d90
5 changed files with 74 additions and 68 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
imports = [
|
||||
inputs.hyprland.homeManagerModules.default
|
||||
./hyprland
|
||||
./hyprland.nix
|
||||
./eww
|
||||
./theme.nix
|
||||
];
|
||||
|
@ -107,22 +107,5 @@
|
|||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Catppuccin-Pink-Dark";
|
||||
package = pkgs.catppuccin-gtk;
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Arc";
|
||||
package = pkgs.arc-icon-theme;
|
||||
};
|
||||
cursorTheme = {
|
||||
name = "Catppuccin-Frappe-Pink-Cursors";
|
||||
package = pkgs.catppuccin.cursors;
|
||||
size = 32;
|
||||
};
|
||||
};
|
||||
|
||||
services.syncthing.enable = true;
|
||||
}
|
||||
|
|
|
@ -1,29 +1,3 @@
|
|||
$rosewater: #f2d5cf;
|
||||
$flamingo: #eebebe;
|
||||
$pink: #f4b8e4;
|
||||
$mauve: #ca9ee6;
|
||||
$red: #e78284;
|
||||
$maroon: #ea999c;
|
||||
$peach: #ef9f76;
|
||||
$yellow: #e5c890;
|
||||
$green: #a6d189;
|
||||
$teal: #81c8be;
|
||||
$sky: #99d1db;
|
||||
$sapphire: #85c1dc;
|
||||
$blue: #8caaee;
|
||||
$lavender: #babbf1;
|
||||
$text: #c6d0f5;
|
||||
$subtext1: #b5bfe2;
|
||||
$subtext0: #a5adce;
|
||||
$overlay2: #949cbb;
|
||||
$overlay1: #838ba7;
|
||||
$overlay0: #737994;
|
||||
$surface2: #626880;
|
||||
$surface1: #51576d;
|
||||
$surface0: #414559;
|
||||
$base: #303446;
|
||||
$mantle: #292c3c;
|
||||
$crust: #232634;
|
||||
$light-gray: #9699b7;
|
||||
|
||||
* {
|
||||
|
|
|
@ -5,11 +5,6 @@
|
|||
wallpaper = eDP-1,~/cloud/Pictures/Wallpapers-Laptop/wallpaper-nix-pink.png
|
||||
'';
|
||||
|
||||
home.file.".xsettingsd".text = ''
|
||||
Gtk/CursorThemeName "Catppuccin-Frappe-Pink-Cursors"
|
||||
Net/ThemeName "Catppuccin-Pink-Dark"
|
||||
'';
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
|
@ -1,6 +1,9 @@
|
|||
{ ... }:
|
||||
{ lib, ... }:
|
||||
let
|
||||
# Catpuccin Frappe Pink
|
||||
inherit (builtins) mapAttrs;
|
||||
|
||||
theme = "Catppuccin-Pink-Dark";
|
||||
cursorTheme = "Catppuccin-Frappe-Pink-Cursors";
|
||||
colour = rec {
|
||||
rosewater = "f2d5cf";
|
||||
flamingo = "eebebe";
|
||||
|
@ -17,22 +20,44 @@ let
|
|||
blue = "8caaee";
|
||||
lavender = "babbf1";
|
||||
text = "c6d0f5";
|
||||
subtext1 = "b5bfe2";
|
||||
subtext0 = "a5adce";
|
||||
subtext1 = "b5bfe2";
|
||||
overlay2 = "949cbb";
|
||||
overlay1 = "838ba7";
|
||||
overlay0 = "737994";
|
||||
surface2 = "626880";
|
||||
surface1 = "51576d";
|
||||
overlay1 = "838ba7";
|
||||
surface0 = "414559";
|
||||
surface1 = "51576d";
|
||||
surface2 = "626880";
|
||||
base = "303446";
|
||||
mantle = "292c3c";
|
||||
crust = "232634";
|
||||
|
||||
hex = builtins.mapAttrs (name: value: "#${value}") colour;
|
||||
hex = mapAttrs (name: value: "#${value}") colour;
|
||||
};
|
||||
in
|
||||
{
|
||||
home.file.".xsettingsd".text = ''
|
||||
Net/ThemeName "${theme}"
|
||||
Gtk/CursorThemeName "${cursorTheme}"
|
||||
'';
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = theme;
|
||||
package = pkgs.catppuccin-gtk;
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Arc";
|
||||
package = pkgs.arc-icon-theme;
|
||||
};
|
||||
cursorTheme = {
|
||||
name = cursorTheme;
|
||||
package = pkgs.catppuccin.cursors;
|
||||
size = 32;
|
||||
};
|
||||
};
|
||||
|
||||
# Note, pink and blue are switched
|
||||
programs.foot.settings.colors = {
|
||||
foreground = colour.text; # Text
|
||||
|
@ -61,4 +86,33 @@ in
|
|||
textColor = colour.hex.text;
|
||||
borderRadius = 5;
|
||||
};
|
||||
|
||||
home.file.".config/eww/eww.scss".text = lib.mkBefore ''
|
||||
$rosewater: ${colour.hex.rosewater};
|
||||
$flamingo: ${colour.hex.flamingo};
|
||||
$pink: ${colour.hex.pink};
|
||||
$mauve: ${colour.hex.mauve};
|
||||
$red: ${colour.hex.red};
|
||||
$maroon: ${colour.hex.maroon};
|
||||
$peach: ${colour.hex.peach};
|
||||
$yellow: ${colour.hex.yellow};
|
||||
$green: ${colour.hex.green};
|
||||
$teal: ${colour.hex.teal};
|
||||
$sky: ${colour.hex.sky};
|
||||
$sapphire: ${colour.hex.sapphire};
|
||||
$blue: ${colour.hex.blue};
|
||||
$lavender: ${colour.hex.lavender};
|
||||
$text: ${colour.hex.text};
|
||||
$subtext0: ${colour.hex.subtext0};
|
||||
$subtext1: ${colour.hex.subtext1};
|
||||
$overlay0: ${colour.hex.overlay0};
|
||||
$overlay1: ${colour.hex.overlay1};
|
||||
$overlay2: ${colour.hex.overlay2};
|
||||
$surface0: ${colour.hex.surface0};
|
||||
$surface1: ${colour.hex.surface1};
|
||||
$surface2: ${colour.hex.surface2};
|
||||
$base: ${colour.hex.base};
|
||||
$mantle: ${colour.hex.mantle};
|
||||
$crust: ${colour.hex.crust};
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue