feat: move back to gnome

This commit is contained in:
Jet 2026-05-07 17:55:36 -07:00
parent 2394f856b0
commit 6530292166
No known key found for this signature in database
5 changed files with 201 additions and 270 deletions

View file

@ -145,8 +145,8 @@ let
runtimeInputs = [
pkgs.coreutils
pkgs.curl
pkgs.glib
pkgs.jq
pkgs.sway
];
text = ''
set -euo pipefail
@ -201,8 +201,10 @@ let
set_wallpaper() {
local target="$1"
if [ -n "''${SWAYSOCK:-}" ] && [ -n "''${WAYLAND_DISPLAY:-}" ]; then
swaymsg output "*" bg "$target" fill >/dev/null
if [ -n "''${DBUS_SESSION_BUS_ADDRESS:-}" ]; then
gsettings set org.gnome.desktop.background picture-uri "file://$target"
gsettings set org.gnome.desktop.background picture-uri-dark "file://$target"
gsettings set org.gnome.desktop.background picture-options 'zoom'
fi
}