From 04064e6440d74c1e3cd5f1fa3f0cc8b9754ee863 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 27 Apr 2022 14:52:46 -0400 Subject: [PATCH] Move wallpaper commands --- home/modules/linux/graphical/x11/hidpi.nix | 1 - home/modules/linux/graphical/x11/i3.nix | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/home/modules/linux/graphical/x11/hidpi.nix b/home/modules/linux/graphical/x11/hidpi.nix index bc9bb58..2ec8e09 100644 --- a/home/modules/linux/graphical/x11/hidpi.nix +++ b/home/modules/linux/graphical/x11/hidpi.nix @@ -25,7 +25,6 @@ in # Load 4k Xresources xsession.initExtra = '' xrdb -merge ~/.config/X11/.Xresources - feh --bg-fill ~/wallpaper.jpg ''; }; } diff --git a/home/modules/linux/graphical/x11/i3.nix b/home/modules/linux/graphical/x11/i3.nix index 11e53fd..b92c7dc 100644 --- a/home/modules/linux/graphical/x11/i3.nix +++ b/home/modules/linux/graphical/x11/i3.nix @@ -107,7 +107,12 @@ in { command = "discord"; } { command = "dex -ae i3"; } { command = "ibus-daemon -drxR"; } - ]; + ] ++ + ( + if (config.linux.graphical.wallpaper != "") + then [{ command = "${pkgs.feh}/bin/feh --bg-fill ${config.linux.graphical.wallpaper}"; }] + else [ ] + ); };