feh-background (376B)
1 #!/usr/bin/env bash 2 set -x 3 if ! command -v gsettings &>/dev/null; then 4 echo "gsettings not installed." >&2 5 exit 1 6 fi 7 8 theme=$(gsettings get org.gnome.Terminal.Legacy.Settings theme-variant | tr -d "'") 9 if [ "$theme" = "light" ]; then 10 feh --bg-scale "/home/zeroalpha/Pictures/Backgrounds/light.jpg" 11 else 12 feh --bg-fill "/home/zeroalpha/Pictures/Backgrounds/dark.jpg" 13 fi