chore: rename swww to awww
This commit is contained in:
@@ -20,7 +20,7 @@ in
|
|||||||
services = {
|
services = {
|
||||||
ssh-agent = enabled;
|
ssh-agent = enabled;
|
||||||
fusuma = enabled;
|
fusuma = enabled;
|
||||||
swww = enabled;
|
awww = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
security = {
|
security = {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ in
|
|||||||
services = {
|
services = {
|
||||||
ssh-agent = enabled;
|
ssh-agent = enabled;
|
||||||
fusuma = enabled;
|
fusuma = enabled;
|
||||||
swww = enabled;
|
awww = enabled;
|
||||||
poweralertd = enabled;
|
poweralertd = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ in
|
|||||||
services = {
|
services = {
|
||||||
ssh-agent = enabled;
|
ssh-agent = enabled;
|
||||||
fusuma = enabled;
|
fusuma = enabled;
|
||||||
swww = enabled;
|
awww = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
security = {
|
security = {
|
||||||
|
|||||||
@@ -5,23 +5,23 @@
|
|||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.${namespace}.services.swww;
|
cfg = config.${namespace}.services.awww;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.${namespace}.services.swww = {
|
options.${namespace}.services.awww = {
|
||||||
enable = lib.mkEnableOption "swww wallpaper service";
|
enable = lib.mkEnableOption "awww wallpaper service";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
swww
|
awww
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.user = {
|
systemd.user = {
|
||||||
services = {
|
services = {
|
||||||
swww-daemon = {
|
awww-daemon = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "SWWW Wallpaper Daemon";
|
Description = "AWWW Wallpaper Daemon";
|
||||||
After = [ "graphical-session.target" ];
|
After = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ in
|
|||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${pkgs.swww}/bin/swww-daemon";
|
ExecStart = "${pkgs.awww}/bin/awww-daemon";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 5;
|
RestartSec = 5;
|
||||||
};
|
};
|
||||||
@@ -39,28 +39,28 @@ in
|
|||||||
|
|
||||||
change-wallpaper = {
|
change-wallpaper = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "SWWW Wallpaper Changer";
|
Description = "AWWW Wallpaper Changer";
|
||||||
After = [ "swww-daemon.service" ];
|
After = [ "awww-daemon.service" ];
|
||||||
Requires = [ "swww-daemon.service" ];
|
Requires = [ "awww-daemon.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
Install = {
|
Install = {
|
||||||
WantedBy = [ "swww-daemon.service" ];
|
WantedBy = [ "awww-daemon.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${pkgs.writeShellScript "change-wallpaper-script" ''
|
ExecStart = "${pkgs.writeShellScript "change-wallpaper-script" ''
|
||||||
WALLPAPER=$(${pkgs.findutils}/bin/find $HOME/Wallpapers -type f | ${pkgs.coreutils}/bin/shuf -n 1)
|
WALLPAPER=$(${pkgs.findutils}/bin/find $HOME/Wallpapers -type f | ${pkgs.coreutils}/bin/shuf -n 1)
|
||||||
${pkgs.swww}/bin/swww img "$WALLPAPER" --transition-type random
|
${pkgs.awww}/bin/awww img "$WALLPAPER" --transition-type random
|
||||||
''}";
|
''}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
timers.swww-schedule = {
|
timers.awww-schedule = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "SWWW Wallpaper Schedule";
|
Description = "AWWW Wallpaper Schedule";
|
||||||
};
|
};
|
||||||
|
|
||||||
Install = {
|
Install = {
|
||||||
Reference in New Issue
Block a user