mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 09:37:59 +03:00
nixos/desktop-manager: Don't fall back to black background
Previously if ~/.background-image wasn't present, the background would be set to black, which would override what the user could set in e.g. services.xserver.windowManager.i3.extraSessionCommands
This commit is contained in:
parent
7a7b8d904b
commit
78d83650df
@ -74,9 +74,6 @@ in
|
|||||||
+ optionalString (needBGCond d) ''
|
+ optionalString (needBGCond d) ''
|
||||||
if [ -e $HOME/.background-image ]; then
|
if [ -e $HOME/.background-image ]; then
|
||||||
${pkgs.feh}/bin/feh --bg-${cfg.wallpaper.mode} ${optionalString cfg.wallpaper.combineScreens "--no-xinerama"} $HOME/.background-image
|
${pkgs.feh}/bin/feh --bg-${cfg.wallpaper.mode} ${optionalString cfg.wallpaper.combineScreens "--no-xinerama"} $HOME/.background-image
|
||||||
else
|
|
||||||
# Use a solid black background as fallback
|
|
||||||
${pkgs.xorg.xsetroot}/bin/xsetroot -solid black
|
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user