Split swww files into daemon and dynamic wallpaper

Change wallpaper to the Citadel, use an animated version on Vanguard
only

Drop nix-ts-mode for Emacs (use regular nix-mode)
This commit is contained in:
Evie Litherland-Smith 2025-01-02 16:12:52 +00:00
parent 1db4aad4a7
commit e0dea93832
8 changed files with 21 additions and 22 deletions

View file

@ -11,6 +11,7 @@
]; ];
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/onedark.yaml"; stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/onedark.yaml";
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ ./home/swww/default.nix ];
home = { home = {
stateVersion = "23.05"; stateVersion = "23.05";
packages = with pkgs; [ packages = with pkgs; [
@ -64,6 +65,9 @@
"6, monitor:desc:${primary}" "6, monitor:desc:${primary}"
"7, monitor:desc:${primary}" "7, monitor:desc:${primary}"
]; ];
exec-once = [
"sleep 2 && systemctl --user start swww-daemon.service && sleep 2 && swww img ${./wallpapers/animated/citadel.gif} && systemctl --user stop hyprpaper.service"
];
}; };
}; };
boot = { boot = {

View file

@ -40,7 +40,6 @@ with epkgs;
magit magit
forge forge
nix-mode nix-mode
nix-ts-mode
julia-mode julia-mode
julia-ts-mode julia-ts-mode
python-docstring python-docstring

View file

@ -13,7 +13,6 @@
./mako.nix ./mako.nix
./avizo.nix ./avizo.nix
./wlogout.nix ./wlogout.nix
./swww.nix
]; ];
home.packages = [ home.packages = [
(pkgs.writeShellScriptBin "protonmail-setup-bridge" '' (pkgs.writeShellScriptBin "protonmail-setup-bridge" ''
@ -26,7 +25,6 @@
services = { services = {
kanshi.systemdTarget = "hyprland-session.target"; kanshi.systemdTarget = "hyprland-session.target";
gpg-agent.pinentryPackage = pkgs.pinentry-gnome3; gpg-agent.pinentryPackage = pkgs.pinentry-gnome3;
hyprpaper.enable = lib.mkForce false;
hypridle = { hypridle = {
enable = true; enable = true;
settings = settings =
@ -165,7 +163,6 @@
"systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME" "systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME"
"${config.wayland.windowManager.hyprland.finalPackage}/bin/hyprctl setcursor ${config.gtk.cursorTheme.name} ${toString config.gtk.cursorTheme.size}" "${config.wayland.windowManager.hyprland.finalPackage}/bin/hyprctl setcursor ${config.gtk.cursorTheme.name} ${toString config.gtk.cursorTheme.size}"
"${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1" "${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
"sleep 2; systemctl --user start swww-daemon.service; sleep 2; systemctl --user start dynamic-wallpaper.service"
"PASSWORD_STORE_DIR=/dev/null ${pkgs.protonmail-bridge}/bin/protonmail-bridge -n" "PASSWORD_STORE_DIR=/dev/null ${pkgs.protonmail-bridge}/bin/protonmail-bridge -n"
"${pkgs.dex}/bin/dex -a" "${pkgs.dex}/bin/dex -a"
]; ];

View file

@ -0,0 +1,12 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ swww ];
systemd.user.services.swww-daemon = {
Unit = {
Description = "SWWW Daemon";
Wants = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service.ExecStart = "${pkgs.swww}/bin/swww-daemon";
};
}

View file

@ -24,18 +24,9 @@ let
''; '';
in in
{ {
home.packages = with pkgs; [ swww ]; imports = [ ./default.nix ];
systemd.user = { systemd.user = {
services = { services.dynamic-wallpaper = {
swww-daemon = {
Unit = {
Description = "SWWW Daemon";
Wants = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service.ExecStart = "${pkgs.swww}/bin/swww-daemon";
};
dynamic-wallpaper = {
Unit = { Unit = {
Description = "Change wallpaper based on time of day"; Description = "Change wallpaper based on time of day";
Wants = [ "swww-daemon.service" ]; Wants = [ "swww-daemon.service" ];
@ -46,13 +37,9 @@ in
ExecStart = "${dynamicWallpaper}/bin/dynamic-wallpaper"; ExecStart = "${dynamicWallpaper}/bin/dynamic-wallpaper";
}; };
}; };
}; timers.dynamic-wallpaper.Timer = {
timers.dynamic-wallpaper = { OnCalendar = "*:0";
Install.WantedBy = [ "timers.target" ]; Unit = "dynamic-wallpaper.service";
Timer = {
OnCalendar = "*:0";
Unit = "dynamic-wallpaper.service";
};
}; };
}; };
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 642 KiB