Added wallpaper
This commit is contained in:
parent
bcd4db1758
commit
9314d51fb9
|
@ -7,6 +7,7 @@
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.aa.desktop.sway;
|
cfg = config.aa.desktop.sway;
|
||||||
|
user_cfg = config.home-manager.users.${config.aa.user.name};
|
||||||
nag = "swaynag";
|
nag = "swaynag";
|
||||||
left = "h";
|
left = "h";
|
||||||
right = "l";
|
right = "l";
|
||||||
|
@ -21,6 +22,14 @@ with lib; let
|
||||||
in {
|
in {
|
||||||
options.aa.desktop.sway = with types; {
|
options.aa.desktop.sway = with types; {
|
||||||
enable = mkEnableOption "sway";
|
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 {
|
config = mkIf cfg.enable {
|
||||||
|
@ -42,6 +51,9 @@ in {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [wl-clipboard];
|
environment.systemPackages = with pkgs; [wl-clipboard];
|
||||||
|
|
||||||
|
aa.home.dataFile = {
|
||||||
|
${cfg.wallpaperPath}.source = ./wallpaper.jpg;
|
||||||
|
};
|
||||||
aa.home.extraOptions = {
|
aa.home.extraOptions = {
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -97,6 +109,7 @@ in {
|
||||||
output = {
|
output = {
|
||||||
# TODO: Set up wallpaper
|
# TODO: Set up wallpaper
|
||||||
# "*".bg = "${wallpaper} fill";
|
# "*".bg = "${wallpaper} fill";
|
||||||
|
"*".bg = "${user_cfg.xdg.dataHome}/${cfg.wallpaperPath} fill";
|
||||||
"eDP-1".scale = "1";
|
"eDP-1".scale = "1";
|
||||||
|
|
||||||
"Unknown ASUS VG24V 0x00007AAC" = {
|
"Unknown ASUS VG24V 0x00007AAC" = {
|
||||||
|
|
BIN
modules/desktop/sway/wallpaper.jpg
Normal file
BIN
modules/desktop/sway/wallpaper.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 MiB |
Loading…
Reference in a new issue