[download]

local/bin/theme-de

   1 #!/bin/bash
   2 
   3 t=Adapta-Color
   4 i=Papirus-Color
   5 b=~/.theme/background
   6 
   7 ################################################################################
   8 
   9 busctl set-property org.freedesktop.Accounts \
  10 /org/freedesktop/Accounts/User$UID            \
  11 org.freedesktop.DisplayManager.AccountsService \
  12 BackgroundFile s "$b"
  13 
  14 ################################################################################
  15 
  16 hsetroot -fill "$b"
  17 
  18 xfconf-query -c xfce4-desktop -l | grep last-image |
  19 xargs -rI % xfconf-query -c xfce4-desktop -p % -s "$b"
  20 
  21 gsettings set org.mate.background             picture-filename   "$b"
  22 gsettings set org.gnome.desktop.background    picture-uri "file://$b"
  23 gsettings set org.cinnamon.desktop.background picture-uri "file://$b"
  24 
  25 ################################################################################
  26 
  27 # fill  3 stretched
  28 # cover 5 zoom
  29 
  30 xfconf-query -c xfce4-desktop -l | grep image-style |
  31 xargs -rI % xfconf-query -c xfce4-desktop -p % -s 3
  32 
  33 gsettings set org.mate.background             picture-options stretched
  34 gsettings set org.gnome.desktop.background    picture-options stretched
  35 gsettings set org.cinnamon.desktop.background picture-options stretched
  36 
  37 ################################################################################
  38 
  39 gsettings set org.mate.Marco.general  theme $t
  40 gsettings set org.mate.interface  gtk-theme $t
  41 gsettings set org.mate.interface icon-theme $i
  42 
  43 xfconf-query -c xfwm4     -p /general/theme     -s $t
  44 xfconf-query -c xsettings -p     /Net/ThemeName -s $t
  45 xfconf-query -c xsettings -p /Net/IconThemeName -s $i
  46 
  47 gsettings set org.gnome.desktop.wm.preferences theme $t
  48 gsettings set org.gnome.desktop.interface  gtk-theme $t
  49 gsettings set org.gnome.desktop.interface icon-theme $i
  50 
  51 gsettings set org.cinnamon.theme                   name $t
  52 gsettings set org.cinnamon.desktop.wm.preferences theme $t
  53 gsettings set org.cinnamon.desktop.interface  gtk-theme $t
  54 gsettings set org.cinnamon.desktop.interface icon-theme $i