From a706438b085069e977a3f6679cbfa1472f7542c4 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Tue, 14 Apr 2026 10:33:52 +0100 Subject: [PATCH] Simplify wallpaper function to use fixed background path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No longer accepts an argument — always regenerates colors from the wallpaper managed by git at ~/.local/share/backgrounds/wallpaper.png. Co-Authored-By: Claude Opus 4.6 --- settings/shell.nix | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/settings/shell.nix b/settings/shell.nix index e411361..ffe1769 100644 --- a/settings/shell.nix +++ b/settings/shell.nix @@ -128,21 +128,10 @@ function fish_right_prompt; end - # Set wallpaper and regenerate color theme + # Regenerate wallpaper color theme function wallpaper - if test (count $argv) -ne 1 - echo "Usage: wallpaper " - return 1 - end - set -l img (realpath "$argv[1]") - if not test -f "$img" - echo "File not found: $img" - return 1 - end - gsettings set org.gnome.desktop.background picture-uri "file://$img" - gsettings set org.gnome.desktop.background picture-uri-dark "file://$img" - matugen image "$img" --source-color-index 0 -m dark - echo "Wallpaper and colors updated! Shell theme reloaded." + matugen image ~/.local/share/backgrounds/wallpaper.png --source-color-index 0 -m dark + echo "Wallpaper colors updated! Shell theme reloaded." end ''; }