feat(desktop): wpaperd -> hyprpaper
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
79c293f29f
commit
35645b93a6
7 changed files with 29 additions and 30 deletions
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -161,14 +161,6 @@ let
|
|||
repo = "grim-hyprland";
|
||||
};
|
||||
|
||||
wpaperd = mkDep {
|
||||
owner = "danyspin97";
|
||||
repo = "wpaperd";
|
||||
|
||||
# FIXME: latest breaks
|
||||
rev = "d4a9cd8b751bed47bf57a93a7ee63054ba43e63b";
|
||||
};
|
||||
|
||||
discord-overlay = mkDep {
|
||||
owner = "matt1432";
|
||||
repo = "discord-nightly-overlay";
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
in {
|
||||
imports = [
|
||||
../../home/theme
|
||||
../../home/wpaperd.nix
|
||||
../../home/hyprpaper.nix
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
|
@ -12,7 +12,7 @@ in {
|
|||
|
||||
exec-once = [
|
||||
"hyprctl setcursor Dracula-cursors 24"
|
||||
"wpaperd -d"
|
||||
"hyprpaper"
|
||||
];
|
||||
|
||||
windowrule = [
|
||||
|
|
|
@ -26,7 +26,7 @@ in {
|
|||
imports = [
|
||||
astal.homeManagerModules.default
|
||||
../home/theme
|
||||
../home/wpaperd.nix
|
||||
../home/hyprpaper.nix
|
||||
];
|
||||
|
||||
programs.astal.enable = true;
|
||||
|
@ -50,7 +50,7 @@ in {
|
|||
''
|
||||
import { transpileTypeScript } from './js/utils.js';
|
||||
|
||||
Utils.execAsync('wpaperd -d');
|
||||
Utils.execAsync('hyprpaper');
|
||||
|
||||
export default (await transpileTypeScript('greeter')).default;
|
||||
'';
|
||||
|
|
25
modules/desktop/home/hyprpaper.nix
Normal file
25
modules/desktop/home/hyprpaper.nix
Normal 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}"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue