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";
|
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 = {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
];
|
];
|
||||||
|
|
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
|
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";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
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