Skip to content

Commit

Permalink
hyprpaper hm module
Browse files Browse the repository at this point in the history
  • Loading branch information
amadejkastelic committed Oct 31, 2024
1 parent 1062160 commit 09eddf7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
2 changes: 0 additions & 2 deletions home/services/wayland/hypridle.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
pkgs,
lib,
config,
...
}: {
# screen idle
services.hypridle = {
enable = true;

Expand Down
20 changes: 6 additions & 14 deletions home/services/wayland/hyprpaper.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
{
pkgs,
inputs,
lib,
config,
...
}: {
xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ${config.theme.wallpaper}
wallpaper = , ${config.theme.wallpaper}
'';
services.hyprpaper = {
enable = true;
package = inputs.hyprpaper.packages.${pkgs.system}.default;

systemd.user.services.hyprpaper = {
Unit = {
Description = "Hyprland wallpaper daemon";
PartOf = ["graphical-session.target"];
settings = {
preload = ["${config.theme.wallpaper}"];
wallpaper = [", ${config.theme.wallpaper}"];
};
Service = {
ExecStart = "${lib.getExe inputs.hyprpaper.packages.${pkgs.system}.default}";
Restart = "on-failure";
};
Install.WantedBy = ["graphical-session.target"];
};
}
8 changes: 1 addition & 7 deletions home/services/wayland/mako.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
pkgs,
inputs,
lib,
config,
...
}: {
{}: {
services.mako = {
enable = true;

Expand Down

0 comments on commit 09eddf7

Please sign in to comment.