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:
parent
1db4aad4a7
commit
e0dea93832
|
@ -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 = {
|
||||
|
|
|
@ -40,7 +40,6 @@ with epkgs;
|
|||
magit
|
||||
forge
|
||||
nix-mode
|
||||
nix-ts-mode
|
||||
julia-mode
|
||||
julia-ts-mode
|
||||
python-docstring
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
|
|
12
system/home/swww/default.nix
Normal file
12
system/home/swww/default.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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 = {
|
||||
OnCalendar = "*:0";
|
||||
Unit = "dynamic-wallpaper.service";
|
||||
};
|
||||
timers.dynamic-wallpaper.Timer = {
|
||||
OnCalendar = "*:0";
|
||||
Unit = "dynamic-wallpaper.service";
|
||||
};
|
||||
};
|
||||
}
|
BIN
system/wallpapers/animated/citadel.gif
Normal file
BIN
system/wallpapers/animated/citadel.gif
Normal file
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 |
BIN
system/wallpapers/shooting_star.jpg
Normal file
BIN
system/wallpapers/shooting_star.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 642 KiB |
Loading…
Reference in a new issue