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:
parent
00b56fa9f2
commit
3318514e2f
8 changed files with 75 additions and 14 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,5 +1,7 @@
|
||||||
*
|
*
|
||||||
|
|
||||||
|
!devirations/
|
||||||
|
|
||||||
!machines/
|
!machines/
|
||||||
!machines/enka/
|
!machines/enka/
|
||||||
!machines/enka/bat/
|
!machines/enka/bat/
|
||||||
|
@ -26,8 +28,6 @@
|
||||||
!machines/enka/steck/
|
!machines/enka/steck/
|
||||||
!machines/enka/waybar/
|
!machines/enka/waybar/
|
||||||
|
|
||||||
!themes/
|
|
||||||
|
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!flake.lock
|
!flake.lock
|
||||||
|
|
||||||
|
|
22
devirations/gruvbox-icons.nix
Normal file
22
devirations/gruvbox-icons.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
35
devirations/material-cursors.nix
Normal file
35
devirations/material-cursors.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
|
@ -66,8 +66,13 @@
|
||||||
"RobotoMono"
|
"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;
|
hyprland = inputs.hyprland.packages.${system}.default;
|
||||||
hyprpicker = inputs.hyprpicker.packages.${system}.default;
|
hyprpicker = inputs.hyprpicker.packages.${system}.default;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
{ pkgs, upkgs, homeConfiguration, enabled, ... }:
|
{ upkgs, homeConfiguration, enabled, ... }:
|
||||||
|
|
||||||
homeConfiguration "nixos" {
|
homeConfiguration "nixos" {
|
||||||
services.dunst = with upkgs.theme.withHashtag; enabled {
|
services.dunst = with upkgs.theme.withHashtag; enabled {
|
||||||
iconTheme = {
|
iconTheme = upkgs.theme.icons;
|
||||||
name = "Gruvbox-Dark";
|
|
||||||
package = pkgs.gruvbox-dark-icons-gtk;
|
|
||||||
};
|
|
||||||
|
|
||||||
settings.global = with upkgs.theme; {
|
settings.global = with upkgs.theme; {
|
||||||
width = "(300, 900)";
|
width = "(300, 900)";
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
|
|
||||||
homeConfiguration "nixos" {
|
homeConfiguration "nixos" {
|
||||||
programs.fuzzel = enabled {
|
programs.fuzzel = enabled {
|
||||||
settings.main = with upkgs.theme.font; {
|
settings.main = with upkgs.theme; {
|
||||||
font = "${sans.name}:size=${toString size.big}";
|
dpi-aware = false;
|
||||||
dpi-aware = false;
|
font = "${font.sans.name}:size=${toString font.size.big}";
|
||||||
|
icon-theme = icons.name;
|
||||||
|
|
||||||
layer = "overlay";
|
layer = "overlay";
|
||||||
prompt = ''"❯ "'';
|
prompt = ''"❯ "'';
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,7 @@
|
||||||
size = size.normal;
|
size = size.normal;
|
||||||
};
|
};
|
||||||
|
|
||||||
iconTheme = {
|
iconTheme = upkgs.theme.icons;
|
||||||
name = "Gruvbox-Dark";
|
|
||||||
package = pkgs.gruvbox-dark-icons-gtk;
|
|
||||||
};
|
|
||||||
|
|
||||||
theme = {
|
theme = {
|
||||||
name = "Adwaita-dark";
|
name = "Adwaita-dark";
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
exec-once = wl-paste --type text --watch cliphist store
|
exec-once = wl-paste --type text --watch cliphist store
|
||||||
exec-once = wl-paste --type image --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
|
exec = pkill --signal SIGUSR2 waybar
|
||||||
''
|
''
|
||||||
+
|
+
|
||||||
|
@ -217,6 +219,7 @@
|
||||||
slurp
|
slurp
|
||||||
swappy
|
swappy
|
||||||
upkgs.hyprpicker
|
upkgs.hyprpicker
|
||||||
|
upkgs.material-cursors
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
xdg-utils
|
xdg-utils
|
||||||
xwaylandvideobridge
|
xwaylandvideobridge
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue