feat: use sddm20 and a bunch of dracula stuff

This commit is contained in:
matt1432 2023-07-15 00:45:09 -04:00
parent 85842b9060
commit 2b1ab1608d
6 changed files with 66 additions and 13 deletions

View file

@ -1,6 +1,6 @@
$darkbg: #0b0d16; $darkbg: #0b0d16;
$bg: rgb(24, 27, 35); //rgba(69, 71, 90, 0.3); #0d0f18; $bg: rgb(40, 42, 54); //rgba(69, 71, 90, 0.3); #0d0f18;
$contrastbg: #0f111a; $contrastbg: rgba(189, 147, 249, 0.8);
$bgSecondary: #11131c; $bgSecondary: #11131c;
$bgSecondaryAlt: #a5b6cf; $bgSecondaryAlt: #a5b6cf;
$fg: #a5b6cf; $fg: #a5b6cf;

View file

@ -96,7 +96,7 @@
}, },
{ {
"label": "󰍃", "label": "󰍃",
"command": "swaync-client -cp; sleep 1; eww open closer; $EWW_PATH/open.sh powermenu" "command": "swaync-client -cp; sleep 0.9; eww open closer; $EWW_PATH/open.sh powermenu"
} }
] ]
} }

View file

@ -324,7 +324,7 @@
.widget-volume { .widget-volume {
background-color: @background; background-color: @background;
padding: 4px 8px 8px 8px; padding: 4px 16px 8px 8px;
margin: 0px 8px 8px 8px; margin: 0px 8px 8px 8px;
font-size: x-large; font-size: x-large;
border-bottom: 2px solid @accent; border-bottom: 2px solid @accent;
@ -336,7 +336,7 @@
.widget-backlight { .widget-backlight {
background-color: @background; background-color: @background;
padding: 8px 8px 4px 8px; padding: 8px 16px 4px 8px;
margin: 8px 8px 0px 8px; margin: 8px 8px 0px 8px;
font-size: x-large; font-size: x-large;
border-top: 2px solid @accent; border-top: 2px solid @accent;

View file

@ -37,8 +37,10 @@
plymouth = { plymouth = {
enable = true; enable = true;
themePackages = [ pkgs.catppuccin-plymouth ]; #themePackages = [ pkgs.catppuccin-plymouth ];
theme = "catppuccin-macchiato"; #theme = "catppuccin-macchiato";
themePackages = [ (with import <nixpkgs> {}; callPackage ../overlays/dracula-plymouth.nix {}) ];
theme = "dracula";
}; };
}; };
} }

View file

@ -1,4 +1,4 @@
{config, pkgs, ...}: {config, pkgs, lib, ...}:
{ {
services = { services = {
@ -6,12 +6,21 @@
enable = true; enable = true;
layout = "ca"; layout = "ca";
displayManager = { displayManager = {
gdm = { sddm = {
enable = true; enable = true;
wayland = true; settings = {
General = {
DisplayServer = "wayland";
InputMethod = "";
};
Wayland.CompositorCommand = "${pkgs.weston}/bin/weston --shell=fullscreen-shell.so";
Theme = {
Current = "Dracula";
ThemeDir = "${pkgs.dracula-theme}/share/sddm/themes";
};
};
}; };
sessionPackages = [ sessionPackages = [
pkgs.gnome.gnome-session.sessions # gnome session needed to fix bugs
(builtins.getFlake "github:hyprwm/Hyprland").packages.x86_64-linux.default (builtins.getFlake "github:hyprwm/Hyprland").packages.x86_64-linux.default
]; ];
defaultSession = "hyprland"; defaultSession = "hyprland";
@ -39,6 +48,7 @@
"/nix/var/log/nix" "/nix/var/log/nix"
"/proc" "/proc"
"/run/user/1000" "/run/user/1000"
"${pkgs.findutils}/" # doesn't work?
]; ];
}; };
}; };
@ -153,6 +163,8 @@
evtest evtest
plasma5Packages.kio-admin plasma5Packages.kio-admin
plasma5Packages.ksshaskpass plasma5Packages.ksshaskpass
plasma5Packages.plasma-framework
plasma5Packages.plasma-workspace
]; ];
fonts = { fonts = {

View file

@ -0,0 +1,39 @@
{ lib
, stdenv
, fetchFromGitHub
, pkgs
}:
stdenv.mkDerivation {
name = "dracula-plymouth";
version = "unstable-2023-01-13";
src = fetchFromGitHub {
repo = "plymouth";
owner = "dracula";
rev = "37aa09b27ecee4a825b43d2c1d20b502e8f19c96";
hash = "sha256-7YwkBzkAND9lfH2ewuwna1zUkQStBBx4JHGw3/+svhA=";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/plymouth/themes
mv ./dracula $out/share/plymouth/themes/
sed -i "s@\/usr\/@$out\/@" $out/share/plymouth/themes/dracula/dracula.plymouth
runHook postInstall
'';
meta = with lib; {
description = "A dark theme for Plymouth";
homepage = "https://github.com/dracula/plymouth/tree/main";
license = licenses.mit;
maintainers = with maintainers; [ matt1432 ];
platforms = platforms.all;
};
}