Simplify wallpaper function to use fixed background path
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 <noreply@anthropic.com>
This commit is contained in:
parent
79460a955e
commit
a706438b08
1 changed files with 3 additions and 14 deletions
|
|
@ -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 <path-to-image>"
|
||||
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
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue