Enable feh only for selected window managers ✨
This commit is contained in:
parent
3e7dbe6174
commit
95b7629d29
1 changed files with 8 additions and 4 deletions
|
|
@ -1,7 +1,11 @@
|
|||
{ pkgs, config, ... }:
|
||||
{ pkgs, config, lib, ... }:
|
||||
|
||||
{
|
||||
# Set background image
|
||||
services.xserver.displayManager.sessionCommands =
|
||||
with lib;
|
||||
|
||||
with config.services.xserver.windowManager;
|
||||
let enable = xmonad.enable || i3.enable;
|
||||
|
||||
in {
|
||||
services.xserver.displayManager.sessionCommands = mkIf enable
|
||||
"${pkgs.feh}/bin/feh --no-fehbg --bg-scale ${config.stylix.image}";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue