Skip to content

Commit

Permalink
feh: use stylix.imageScalingMode
Browse files Browse the repository at this point in the history
  • Loading branch information
justDeeevin committed Dec 12, 2024
1 parent 06bec5b commit 611e976
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions modules/feh/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@
|| spectrwm.enable
|| xmonad.enable
)
)
"${pkgs.feh}/bin/feh --no-fehbg --bg-scale ${config.stylix.image}";
) (let
inherit (config.stylix) imageScalingMode;
bg-arg =
if imageScalingMode == "fill"
then "--bg-fill"
else if imageScalingMode == "center"
then "--bg-center"
else if imageScalingMode == "tile"
then "--bg-tile"
else if imageScalingMode == "stretch"
then "--bg-scale"
# Fit
else "--bg-max";
in "${pkgs.feh}/bin/feh --no-fehbg ${bg-arg} ${config.stylix.image}");
}

0 comments on commit 611e976

Please sign in to comment.