Add HM modules for feh

This commit is contained in:
DwarfMaster 2023-02-04 17:51:14 +01:00
parent 4bf7974c6d
commit 54199f717b

12
modules/feh/hm.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, config, lib, ... }:
{
options.stylix.targets.feh.enable =
config.lib.stylix.mkEnableTarget
"the desktop background using Feh"
true;
config.xsession.initExtra =
lib.mkIf config.stylix.targets.feh.enable
"${pkgs.feh}/bin/feh --no-fehbg --bg-scale ${config.stylix.image}";
}