cleanup themes and stuff

This commit is contained in:
Adithya 2024-12-07 16:11:46 +05:30
parent 02f26e10a5
commit 46c8dca034
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
3 changed files with 11 additions and 52 deletions

View file

@ -1,5 +1,4 @@
final: prev: { final: prev: {
dracula-gtk = prev.callPackage ./dracula-gtk { };
misc-scripts = prev.callPackage ./scripts/misc { }; misc-scripts = prev.callPackage ./scripts/misc { };
getpaper = prev.callPackage ./scripts/getpaper { }; getpaper = prev.callPackage ./scripts/getpaper { };
youtube = prev.callPackage ./scripts/youtube { }; youtube = prev.callPackage ./scripts/youtube { };

View file

@ -1,36 +0,0 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, gtk-engine-murrine
,
}:
stdenvNoCC.mkDerivation {
pname = "dracula-gtk";
version = "unstable-2023-10-14";
src = fetchFromGitHub {
owner = "dracula";
repo = "gtk";
rev = "3478e48925f33af411393adaa4043193f03a4e9a";
hash = "sha256-/7/zJXk1LLZKWOpYbrFWBfhFcyddU1y0IwT+RXyyP1M=";
};
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
installPhase = ''
runHook preInstall
mkdir -p $out/share/themes/Dracula
cp -ra assets cinnamon gnome-shell gtk-2.0 gtk-3.0 gtk-3.20 gtk-4.0 metacity-1 unity xfwm4 index.theme $out/share/themes/Dracula/
runHook postInstall
'';
meta = with lib; {
description = "Dracula GTK theme";
downloadPage = "https://github.com/dracula/gtk";
homepage = "https://draculatheme.com/gtk";
license = licenses.gpl3;
maintainers = with maintainers; [ adtya ];
platforms = platforms.linux;
};
}

View file

@ -1,19 +1,17 @@
{ pkgs { pkgs, ...}:
, ...
}:
let let
gtkTheme = { theme = {
name = "Dracula"; name = "Dracula";
package = pkgs.dracula-gtk; package = pkgs.dracula-theme;
}; };
iconTheme = { iconTheme = {
name = "Papirus-Dark"; name = "Dracula";
package = pkgs.papirus-icon-theme.override { color = "black"; }; package = pkgs.dracula-icon-theme;
}; };
cursorTheme = { cursorTheme = {
name = "Bibata-Modern-Classic"; name = "Bibata-Modern-Amber";
package = pkgs.bibata-cursors; package = pkgs.bibata-cursors;
}; };
in in
@ -21,9 +19,7 @@ in
home.pointerCursor = cursorTheme // { gtk.enable = true; size = 24; x11.enable = true; }; home.pointerCursor = cursorTheme // { gtk.enable = true; size = 24; x11.enable = true; };
gtk = { gtk = {
enable = true; enable = true;
theme = gtkTheme; inherit theme cursorTheme iconTheme;
inherit cursorTheme;
inherit iconTheme;
gtk3.extraConfig = { gtk3.extraConfig = {
gtk-application-prefer-dark-theme = true; gtk-application-prefer-dark-theme = true;
}; };
@ -32,11 +28,11 @@ in
}; };
}; };
home.sessionVariables.GTK_THEME = gtkTheme.name; home.sessionVariables.GTK_THEME = theme.name;
xdg.configFile = { xdg.configFile = {
"gtk-4.0/assets".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/assets"; "gtk-4.0/assets".source = "${theme.package}/share/themes/${theme.name}/gtk-4.0/assets";
"gtk-4.0/gtk.css".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/gtk.css"; "gtk-4.0/gtk.css".source = "${theme.package}/share/themes/${theme.name}/gtk-4.0/gtk.css";
"gtk-4.0/gtk-dark.css".source = "${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/gtk-dark.css"; "gtk-4.0/gtk-dark.css".source = "${theme.package}/share/themes/${theme.name}/gtk-4.0/gtk-dark.css";
}; };
dconf.settings = { dconf.settings = {