feat(desktop): wpaperd -> hyprpaper
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-07-06 03:07:47 -04:00
parent 79c293f29f
commit 35645b93a6
7 changed files with 29 additions and 30 deletions

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -161,14 +161,6 @@ let
repo = "grim-hyprland"; repo = "grim-hyprland";
}; };
wpaperd = mkDep {
owner = "danyspin97";
repo = "wpaperd";
# FIXME: latest breaks
rev = "d4a9cd8b751bed47bf57a93a7ee63054ba43e63b";
};
discord-overlay = mkDep { discord-overlay = mkDep {
owner = "matt1432"; owner = "matt1432";
repo = "discord-nightly-overlay"; repo = "discord-nightly-overlay";

View file

@ -3,7 +3,7 @@
in { in {
imports = [ imports = [
../../home/theme ../../home/theme
../../home/wpaperd.nix ../../home/hyprpaper.nix
]; ];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
@ -12,7 +12,7 @@ in {
exec-once = [ exec-once = [
"hyprctl setcursor Dracula-cursors 24" "hyprctl setcursor Dracula-cursors 24"
"wpaperd -d" "hyprpaper"
]; ];
windowrule = [ windowrule = [

View file

@ -26,7 +26,7 @@ in {
imports = [ imports = [
astal.homeManagerModules.default astal.homeManagerModules.default
../home/theme ../home/theme
../home/wpaperd.nix ../home/hyprpaper.nix
]; ];
programs.astal.enable = true; programs.astal.enable = true;
@ -50,7 +50,7 @@ in {
'' ''
import { transpileTypeScript } from './js/utils.js'; import { transpileTypeScript } from './js/utils.js';
Utils.execAsync('wpaperd -d'); Utils.execAsync('hyprpaper');
export default (await transpileTypeScript('greeter')).default; export default (await transpileTypeScript('greeter')).default;
''; '';

View file

@ -0,0 +1,25 @@
{
lib,
pkgs,
self,
...
}: let
wallpaper = toString self.legacyPackages.${pkgs.system}.dracula.wallpaper;
in {
home.packages = with pkgs; [hyprpaper];
xdg.configFile."hypr/hyprpaper.conf" = {
text = lib.hm.generators.toHyprconf {
attrs = {
ipc = "on";
splash = false;
preload = [wallpaper];
wallpaper = [
",${wallpaper}"
];
};
};
};
}

View file

@ -1,18 +0,0 @@
{
pkgs,
self,
wpaperd,
...
}: let
inherit (pkgs.writers) writeTOML;
wpaperdPkg = wpaperd.packages.${pkgs.system}.default;
in {
home.packages = [wpaperdPkg];
xdg.configFile."wpaperd/config.toml".source = writeTOML "config.toml" {
default = {
path = toString self.legacyPackages.${pkgs.system}.dracula.wallpaper;
mode = "stretch";
};
};
}