mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 16:23:55 -05:00
home: renamed desktop.river.randomWallpaper.enable to randomWallpaper
This commit is contained in:
parent
3191a42ad0
commit
9396ec8755
|
@ -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";
|
||||||
|
|
|
@ -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];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue