home: renamed desktop.river.randomWallpaper.enable to randomWallpaper

This commit is contained in:
Aly Raffauf 2024-04-21 13:47:41 -04:00
parent 3191a42ad0
commit 9396ec8755
2 changed files with 6 additions and 8 deletions

View file

@ -22,7 +22,7 @@
firefox.enable = lib.mkDefault true; firefox.enable = lib.mkDefault true;
kanshi.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; programs.swaylock.enable = lib.mkDefault true;
@ -139,8 +139,7 @@
timeout 300 '${lock} \ timeout 300 '${lock} \
timeout 330 '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms off"' \ timeout 330 '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms off"' \
resume '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms on"' \ resume '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms on"' \
before-sleep '${lock}' before-sleep '${lock}' ''
''
else '' else ''
${pkgs.swayidle}/bin/swayidle -w \ ${pkgs.swayidle}/bin/swayidle -w \
timeout 240 '${pkgs.brightnessctl}/bin/brightnessctl -s set 10' \ 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"' \ timeout 330 '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms off"' \
resume '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms on"' \ resume '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms on"' \
timeout 900 '${pkgs.systemd}/bin/systemctl suspend' \ timeout 900 '${pkgs.systemd}/bin/systemctl suspend' \
before-sleep '${lock}' before-sleep '${lock}' '';
'';
riverctl = pkgs.river + "/bin/riverctl"; riverctl = pkgs.river + "/bin/riverctl";
brightness = "${pkgs.swayosd}/bin/swayosd-client"; brightness = "${pkgs.swayosd}/bin/swayosd-client";
@ -351,7 +349,7 @@
${fileManager} --daemon & ${fileManager} --daemon &
${bar} & ${bar} &
${idled} & ${idled} &
${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1 & ${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1 &
''; '';
}; };
} }

View file

@ -18,11 +18,11 @@
''; '';
in { in {
options = { options = {
alyraffauf.desktop.river.randomWallpaper.enable = alyraffauf.desktop.river.randomWallpaper =
lib.mkEnableOption "Enables swaybg random wallpaper script."; 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. # Packages that should be installed to the user profile.
home.packages = with pkgs; [swaybg swaybg-random]; home.packages = with pkgs; [swaybg swaybg-random];