From 9396ec87557af55da526cf5f4d5e86bf4a026c36 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 21 Apr 2024 13:47:41 -0400 Subject: [PATCH] home: renamed desktop.river.randomWallpaper.enable to randomWallpaper --- homeManagerModules/desktop/river/default.nix | 10 ++++------ homeManagerModules/desktop/river/randomWallpaper.nix | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/homeManagerModules/desktop/river/default.nix b/homeManagerModules/desktop/river/default.nix index b3500f45..3a44e4d3 100644 --- a/homeManagerModules/desktop/river/default.nix +++ b/homeManagerModules/desktop/river/default.nix @@ -22,7 +22,7 @@ firefox.enable = lib.mkDefault true; kanshi.enable = lib.mkDefault true; }; - desktop.river.randomWallpaper.enable = lib.mkDefault true; + desktop.river.randomWallpaper = lib.mkDefault true; }; programs.swaylock.enable = lib.mkDefault true; @@ -139,8 +139,7 @@ timeout 300 '${lock} \ timeout 330 '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms off"' \ resume '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms on"' \ - before-sleep '${lock}' - '' + before-sleep '${lock}' '' else '' ${pkgs.swayidle}/bin/swayidle -w \ timeout 240 '${pkgs.brightnessctl}/bin/brightnessctl -s set 10' \ @@ -149,8 +148,7 @@ timeout 330 '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms off"' \ resume '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms on"' \ timeout 900 '${pkgs.systemd}/bin/systemctl suspend' \ - before-sleep '${lock}' - ''; + before-sleep '${lock}' ''; riverctl = pkgs.river + "/bin/riverctl"; brightness = "${pkgs.swayosd}/bin/swayosd-client"; @@ -351,7 +349,7 @@ ${fileManager} --daemon & ${bar} & ${idled} & - ${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1 & + ${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1 & ''; }; } diff --git a/homeManagerModules/desktop/river/randomWallpaper.nix b/homeManagerModules/desktop/river/randomWallpaper.nix index 4c7d0d60..f5f9a3c9 100644 --- a/homeManagerModules/desktop/river/randomWallpaper.nix +++ b/homeManagerModules/desktop/river/randomWallpaper.nix @@ -18,11 +18,11 @@ ''; in { options = { - alyraffauf.desktop.river.randomWallpaper.enable = + alyraffauf.desktop.river.randomWallpaper = lib.mkEnableOption "Enables swaybg random wallpaper script."; }; - config = lib.mkIf config.alyraffauf.desktop.river.randomWallpaper.enable { + config = lib.mkIf config.alyraffauf.desktop.river.randomWallpaper { # Packages that should be installed to the user profile. home.packages = with pkgs; [swaybg swaybg-random];