feat(greetd): use hyprland instead of sway

This commit is contained in:
matt1432 2023-10-19 19:36:47 -04:00
parent 50da06accf
commit c37d0c057b
4 changed files with 90 additions and 41 deletions

View file

@ -3,6 +3,7 @@
{
imports = [
./dracula-theme.nix
./regreet.nix
];
nixpkgs.overlays = [

View file

@ -0,0 +1,13 @@
diff --git a/src/gui/component.rs b/src/gui/component.rs
index 692309c..f2fb9c0 100644
--- a/src/gui/component.rs
+++ b/src/gui/component.rs
@@ -371,7 +371,7 @@ impl AsyncComponent for Greeter {
if let Some(monitor) = &model.updates.monitor {
// The window needs to be manually fullscreened, since the monitor is `None` at widget
// init.
- root.fullscreen_on_monitor(monitor);
+ // root.fullscreen_on_monitor(monitor);
} else {
// Couldn't choose a monitor, so let the compositor choose it for us.
root.fullscreen();

View file

@ -0,0 +1,20 @@
{ pkgs, ... }: {
programs.regreet = {
package = pkgs.greetd.regreet.overrideAttrs (self: super: rec {
version = "0.1.1-patched";
src = pkgs.fetchFromGitHub {
owner = "rharish101";
repo = "ReGreet";
rev = "61d871a0ee5c74230dfef8100d0c9bc75b309203";
hash = "sha256-PkQTubSm/FN3FXs9vBB3FI4dXbQhv/7fS1rXkVsTAAs=";
};
cargoDeps = super.cargoDeps.overrideAttrs (_: {
inherit src;
outputHash = "sha256-dR6veXCGVMr5TbCvP0EqyQKTG2XM65VHF9U2nRWyzfA=";
});
# temp fix until https://github.com/rharish101/ReGreet/issues/32 is solved
patches = [./patches/regreet.patch];
});
};
}