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";
home-manager.users.${username} = {
imports = [ ./home/swww/default.nix ];
home = {
stateVersion = "23.05";
packages = with pkgs; [
@ -64,6 +65,9 @@
"6, 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 = {

View file

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

View file

@ -13,7 +13,6 @@
./mako.nix
./avizo.nix
./wlogout.nix
./swww.nix
];
home.packages = [
(pkgs.writeShellScriptBin "protonmail-setup-bridge" ''
@ -26,7 +25,6 @@
services = {
kanshi.systemdTarget = "hyprland-session.target";
gpg-agent.pinentryPackage = pkgs.pinentry-gnome3;
hyprpaper.enable = lib.mkForce false;
hypridle = {
enable = true;
settings =
@ -165,7 +163,6 @@
"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}"
"${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"
"${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
{
home.packages = with pkgs; [ swww ];
imports = [ ./default.nix ];
systemd.user = {
services = {
swww-daemon = {
Unit = {
Description = "SWWW Daemon";
Wants = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service.ExecStart = "${pkgs.swww}/bin/swww-daemon";
};
dynamic-wallpaper = {
services.dynamic-wallpaper = {
Unit = {
Description = "Change wallpaper based on time of day";
Wants = [ "swww-daemon.service" ];
@ -46,13 +37,9 @@ in
ExecStart = "${dynamicWallpaper}/bin/dynamic-wallpaper";
};
};
};
timers.dynamic-wallpaper = {
Install.WantedBy = [ "timers.target" ];
Timer = {
timers.dynamic-wallpaper.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