chore(desktop): simplify wallpaper path usage in init script
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/3c085026-21a9-4afb-b39f-1d04f1ddd49f Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6f63e0f4d0
commit
8cf43fd3d1
@@ -28,12 +28,11 @@ let
|
|||||||
|
|
||||||
BG_DIR="/run/current-system/sw/share/backgrounds/sovran"
|
BG_DIR="/run/current-system/sw/share/backgrounds/sovran"
|
||||||
ULTRAWIDE="$BG_DIR/sovran-ultrawide.png"
|
ULTRAWIDE="$BG_DIR/sovran-ultrawide.png"
|
||||||
CHOSEN="$ULTRAWIDE"
|
|
||||||
|
|
||||||
if [ ! -f "$WALLPAPER_STAMP" ] || [ "$(cat "$WALLPAPER_STAMP")" != "$WALLPAPER_VERSION" ]; then
|
if [ ! -f "$WALLPAPER_STAMP" ] || [ "$(cat "$WALLPAPER_STAMP")" != "$WALLPAPER_VERSION" ]; then
|
||||||
if [ -f "$CHOSEN" ]; then
|
if [ -f "$ULTRAWIDE" ]; then
|
||||||
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri "'file://$CHOSEN'"
|
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri "'file://$ULTRAWIDE'"
|
||||||
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri-dark "'file://$CHOSEN'"
|
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-uri-dark "'file://$ULTRAWIDE'"
|
||||||
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-options "'zoom'"
|
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/background/picture-options "'zoom'"
|
||||||
mkdir -p "$(dirname "$WALLPAPER_STAMP")"
|
mkdir -p "$(dirname "$WALLPAPER_STAMP")"
|
||||||
echo "$WALLPAPER_VERSION" > "$WALLPAPER_STAMP"
|
echo "$WALLPAPER_VERSION" > "$WALLPAPER_STAMP"
|
||||||
|
|||||||
Reference in New Issue
Block a user