From f0242872c80041232abbca3ba0b54828f0c501a7 Mon Sep 17 00:00:00 2001 From: ene Date: Fri, 3 Mar 2023 19:17:48 +0100 Subject: Feat(hm): Add Wallpaper --- home-manager/config/zsh/default.nix | 2 +- home-manager/default.nix | 1 + home-manager/files/default.nix | 6 ++++++ home-manager/files/wallpaper/abstract-nord.png | Bin 0 -> 140219 bytes home-manager/files/wallpaper/default.nix | 9 +++++++++ home-manager/wms/river/init | 2 +- 6 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 home-manager/files/default.nix create mode 100644 home-manager/files/wallpaper/abstract-nord.png create mode 100644 home-manager/files/wallpaper/default.nix diff --git a/home-manager/config/zsh/default.nix b/home-manager/config/zsh/default.nix index 3230d771..956ebe5c 100644 --- a/home-manager/config/zsh/default.nix +++ b/home-manager/config/zsh/default.nix @@ -94,7 +94,7 @@ COLORTERM = "truecolor"; PAGER = "less -R"; WM = "river"; - AWMWALLPAPER = "/home/dt/media/pictures/tes/wallpapers-linux_cast/Dedicated_Colorschemes/nord/Abstract-Nord.png"; + WALLPAPER = "${config.user.homeDirectory}/media/pictures/wallpaper"; # FUNCNEST for more functions in functions FUNCNEST = "2000"; diff --git a/home-manager/default.nix b/home-manager/default.nix index 11f3bf9d..02c05dcf 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -26,6 +26,7 @@ in { ./packages ./config ./wms + ./files ]; # I don't know what this does, but I've seen it a loot online, so it should be good, right? diff --git a/home-manager/files/default.nix b/home-manager/files/default.nix new file mode 100644 index 00000000..ceb12848 --- /dev/null +++ b/home-manager/files/default.nix @@ -0,0 +1,6 @@ +# vim: ts=2 +{config, ...}: { + import = [ + ./wallpaper + ]; +} diff --git a/home-manager/files/wallpaper/abstract-nord.png b/home-manager/files/wallpaper/abstract-nord.png new file mode 100644 index 00000000..5ef498bf Binary files /dev/null and b/home-manager/files/wallpaper/abstract-nord.png differ diff --git a/home-manager/files/wallpaper/default.nix b/home-manager/files/wallpaper/default.nix new file mode 100644 index 00000000..362e8c99 --- /dev/null +++ b/home-manager/files/wallpaper/default.nix @@ -0,0 +1,9 @@ +# vim: ts=2 +{config, ...}: { + home.file = { + wallpaper = { + source = ./abstract-nord.png; + target = "media/pictures/wallpaper"; + }; + }; +} diff --git a/home-manager/wms/river/init b/home-manager/wms/river/init index ce654c1b..fa317394 100755 --- a/home-manager/wms/river/init +++ b/home-manager/wms/river/init @@ -64,7 +64,7 @@ err_fail wlr-randr --output DP-1 --scale 1.5 --pos 0,0 err_fail yambar & err_fail mako & -err_fail swaybg -i "$AWMWALLPAPER" & +err_fail swaybg -i "$WALLPAPER" & err_fail swayidle & err_fail alacritty & # }}} -- cgit 1.4.1