Fix wallpaper

This commit is contained in:
2025-01-11 00:55:45 +01:00
parent 6623a600b9
commit 2a883b5535
3 changed files with 12 additions and 2 deletions
+4 -1
View File
@@ -160,7 +160,10 @@
programs.bat = {
enable = true;
config.theme = "base16";
config = {
# theme-light = "GitHub";
# theme-dark = "base16";
};
};
programs.command-not-found.enable = false;
+1
View File
@@ -9,6 +9,7 @@
WP=$(find $WALLPAPERS -type f | shuf -n 1)
ln -fs "$WP" ~/.cache/current-wallpaper
${pkgs.wbg}/bin/wbg "$WP" > /dev/null 2> /dev/null & disown
echo "$WP"
'';
in {
+7 -1
View File
@@ -1,7 +1,7 @@
{
flood,
river-src,
...
...
}: self: super: let
wrapProgram = drv: bins: wrapProgramFlags:
super.symlinkJoin {
@@ -65,6 +65,12 @@ in {
src = river-src;
};
wbg = super.wbg.overrideAttrs {
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=maybe-uninitialized"
];
};
# Gnome-control-center can only be launched if XDG_CURRENT_DESKTOP is GNOME.
gnome-control-center = wrapProgram super.gnome-control-center ["gnome-control-center"] "--set XDG_CURRENT_DESKTOP GNOME";