Added wallpaper

This commit is contained in:
Alejandro Angulo 2023-03-29 22:11:22 -07:00
parent bcd4db1758
commit 9314d51fb9
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 13 additions and 0 deletions

View file

@ -7,6 +7,7 @@
}:
with lib; let
cfg = config.aa.desktop.sway;
user_cfg = config.home-manager.users.${config.aa.user.name};
nag = "swaynag";
left = "h";
right = "l";
@ -21,6 +22,14 @@ with lib; let
in {
options.aa.desktop.sway = with types; {
enable = mkEnableOption "sway";
wallpaperPath = mkOption {
type = str;
default = "sway/wallpaper.jpg";
description = ''
Path to wallpaper, relative to config.home-home-manager.users.<username>.xdg.dataHome
'';
};
};
config = mkIf cfg.enable {
@ -42,6 +51,9 @@ in {
environment.systemPackages = with pkgs; [wl-clipboard];
aa.home.dataFile = {
${cfg.wallpaperPath}.source = ./wallpaper.jpg;
};
aa.home.extraOptions = {
wayland.windowManager.sway = {
enable = true;
@ -97,6 +109,7 @@ in {
output = {
# TODO: Set up wallpaper
# "*".bg = "${wallpaper} fill";
"*".bg = "${user_cfg.xdg.dataHome}/${cfg.wallpaperPath} fill";
"eDP-1".scale = "1";
"Unknown ASUS VG24V 0x00007AAC" = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB