1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 19:47:47 +00:00

Add material cursors and icons, and use them

This commit is contained in:
RGBCube 2023-11-30 16:20:16 +03:00
parent 00b56fa9f2
commit 3318514e2f
No known key found for this signature in database
8 changed files with 75 additions and 14 deletions

4
.gitignore vendored
View file

@ -1,5 +1,7 @@
*
!devirations/
!machines/
!machines/enka/
!machines/enka/bat/
@ -26,8 +28,6 @@
!machines/enka/steck/
!machines/enka/waybar/
!themes/
!.gitignore
!flake.lock

View file

@ -0,0 +1,22 @@
{ stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation {
pname = "gruvbox-plus-icons";
version = "2023-11-30";
src = fetchFromGitHub {
owner = "SylEleuth";
repo = "gruvbox-plus-icon-pack";
rev = "5ce3ef1ae9d8360e4aadfcf73842df9a417dd53b";
hash = "sha256-xS6ijyRhc9CaZVERLjqebbNsSbPoFUVTAutOjWiOUKc=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
cp -r Gruvbox-Plus-Dark $out/share/icons/
runHook postInstall
'';
}

View file

@ -0,0 +1,35 @@
{ pkgs, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation {
pname = "material-cursors";
version = "2023-11-30";
src = fetchFromGitHub {
owner = "varlesh";
repo = "material-cursors";
rev = "2a5f302fefe04678c421473bed636b4d87774b4a";
hash = "sha256-uC2qx3jF4d2tGLPnXEpogm0vyC053MvDVVdVXX8AZ60=";
};
nativeBuildInputs = with pkgs; [
inkscape
xorg.xcursorgen
];
buildPhase = ''
runHook preBuild
HOME=$(pwd) bash build.sh 2> /dev/null
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons/material-cursors
cp -r dist/* $out/share/icons/material-cursors
runHook postInstall
'';
}

View file

@ -66,8 +66,13 @@
"RobotoMono"
];
});
icons.name = "Gruvbox-Plus-Dark";
icons.package = pkgs.callPackage (import ./devirations/gruvbox-icons.nix) {};
});
material-cursors = pkgs.callPackage (import ./devirations/material-cursors.nix) {};
hyprland = inputs.hyprland.packages.${system}.default;
hyprpicker = inputs.hyprpicker.packages.${system}.default;
};

View file

@ -1,11 +1,8 @@
{ pkgs, upkgs, homeConfiguration, enabled, ... }:
{ upkgs, homeConfiguration, enabled, ... }:
homeConfiguration "nixos" {
services.dunst = with upkgs.theme.withHashtag; enabled {
iconTheme = {
name = "Gruvbox-Dark";
package = pkgs.gruvbox-dark-icons-gtk;
};
iconTheme = upkgs.theme.icons;
settings.global = with upkgs.theme; {
width = "(300, 900)";

View file

@ -2,9 +2,11 @@
homeConfiguration "nixos" {
programs.fuzzel = enabled {
settings.main = with upkgs.theme.font; {
font = "${sans.name}:size=${toString size.big}";
dpi-aware = false;
settings.main = with upkgs.theme; {
dpi-aware = false;
font = "${font.sans.name}:size=${toString font.size.big}";
icon-theme = icons.name;
layer = "overlay";
prompt = ''" "'';

View file

@ -12,10 +12,7 @@
size = size.normal;
};
iconTheme = {
name = "Gruvbox-Dark";
package = pkgs.gruvbox-dark-icons-gtk;
};
iconTheme = upkgs.theme.icons;
theme = {
name = "Adwaita-dark";

View file

@ -19,6 +19,8 @@
exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store
exec-once = hyprctl sercursor material_dark_cursors ${toString font.size.big}
exec = pkill --signal SIGUSR2 waybar
''
+
@ -217,6 +219,7 @@
slurp
swappy
upkgs.hyprpicker
upkgs.material-cursors
wl-clipboard
xdg-utils
xwaylandvideobridge