diff --git a/README.md b/README.md index 5edc130..342461e 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ There are several packages exposed by this flake. Each directory in `pkgs` conta | ani-cli | An up-to-date, auto updated version of ani-cli | | cloneit | A CLI tool to download specific GitHub directories or files | | foot-transparent | A patched version of the foot terminal emulator that brings back fullscreen transparency[^1] | +| gccn-wrapped | A package providing a wrapper for gnome control center, tricking into thinking we use Gnome | | headscale-ui | A web frontend for the headscale Tailscale-compatible coordination server | | mastodon-bird-ui | Mastodon web UI, but strongly inspired by Twitter. | | mov-cli | A cli tool to browse and watch Movies/Shows/TV/Sports | diff --git a/pkgs/default.nix b/pkgs/default.nix index 57ec9e2..4c7fc62 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -19,7 +19,7 @@ }; packages = let - inherit (pkgs) callPackage foot alejandra; + inherit (pkgs) callPackage foot alejandra fetchFromGitea; pins = import ../npins; mkPackage = path: {__functor = self: self.override;} // (callPackage path {inherit pins;}); @@ -42,8 +42,21 @@ }; # patched packages - foot-transparent = foot.overrideAttrs (prev: { - mesonFlags = prev.mesonFlags ++ ["-Dfullscreen_alpha=true"]; + + foot-transparent = foot.overrideAttrs (prev: let + version = "2024-03-14-unstable"; + in { + inherit version; + + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "dnkl"; + repo = "foot"; + rev = "dd3bb13d97b405495465357f7b7b17c9f2bba3c2"; + hash = "sha256-Pp3/cNELRYmTOQrJgHX6c+t0QkxEjoly0TLMKVj3H0E="; + }; + + mesonFlags = (prev.mesonFlags or []) ++ ["-Dfullscreen_alpha=true"]; patches = (prev.patches or []) ++ [../patches/0001-foot-transparent.patch]; mainProgram = "foot"; }); @@ -51,6 +64,21 @@ alejandra-no-ads = alejandra.overrideAttrs (prev: { patches = (prev.patches or []) ++ [../patches/0003-alejandra-remove-ads.patch]; }); + + # override gnome-control-center to trick it into thinking we're running gnome + # + # + # get overriden idiot + gccn-wrapped = pkgs.gnome.gnome-control-center.overrideAttrs (prev: { + # gnome-control-center does not start without XDG_CURRENT_DESKTOP=gnome + preFixup = + '' + gappsWrapperArgs+=( + --set XDG_CURRENT_DESKTOP "gnome" + ); + '' + + prev.preFixup; + }); }; }; }