Support more file formats for automatic wallpaper switching
This commit is contained in:
parent
2e2189bb2a
commit
8dc72a9532
1 changed files with 5 additions and 4 deletions
|
@ -7,14 +7,13 @@ then
|
||||||
fi
|
fi
|
||||||
# Mint
|
# Mint
|
||||||
theme='Mint-Y-Dark-Pink'
|
theme='Mint-Y-Dark-Pink'
|
||||||
gsettings set org.cinnamon.desktop.background picture-uri "file://$HOME/wallpaper/dark.png"
|
wallpaper=$(find $HOME/wallpaper/ -maxdepth 1 -name "dark.*")
|
||||||
gsettings set org.cinnamon.desktop.interface cursor-theme 'DMX-White'
|
gsettings set org.cinnamon.desktop.interface cursor-theme 'DMX-White'
|
||||||
gsettings set org.cinnamon.desktop.wm.preferences theme 'Mint-Y-Dark'
|
gsettings set org.cinnamon.desktop.wm.preferences theme 'Mint-Y-Dark'
|
||||||
gsettings set org.cinnamon.theme name "$theme"
|
gsettings set org.cinnamon.theme name "$theme"
|
||||||
gsettings set org.cinnamon.desktop.interface icon-theme "$theme"
|
gsettings set org.cinnamon.desktop.interface icon-theme "$theme"
|
||||||
gsettings set org.cinnamon.desktop.interface gtk-theme "$theme"
|
gsettings set org.cinnamon.desktop.interface gtk-theme "$theme"
|
||||||
# Ubuntu
|
# Ubuntu
|
||||||
gsettings set org.gnome.desktop.background picture-uri "file://$HOME/wallpaper/dark.png"
|
|
||||||
gsettings set org.gnome.desktop.interface gtk-theme "Yaru-purple-dark"
|
gsettings set org.gnome.desktop.interface gtk-theme "Yaru-purple-dark"
|
||||||
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
||||||
theme=dark
|
theme=dark
|
||||||
|
@ -23,20 +22,22 @@ else
|
||||||
then sed -i -e 's/kitty_dark.conf/kitty_light.conf/' $HOME/.config/kitty/kitty.conf
|
then sed -i -e 's/kitty_dark.conf/kitty_light.conf/' $HOME/.config/kitty/kitty.conf
|
||||||
fi
|
fi
|
||||||
theme='Mint-Y-Dark-Pink'
|
theme='Mint-Y-Dark-Pink'
|
||||||
|
wallpaper=$(find $HOME/wallpaper/ -maxdepth 1 -name "light.*")
|
||||||
# Mint
|
# Mint
|
||||||
gsettings set org.cinnamon.desktop.background picture-uri "file://$HOME/wallpaper/light.png"
|
|
||||||
gsettings set org.cinnamon.desktop.interface cursor-theme 'DMX-Black'
|
gsettings set org.cinnamon.desktop.interface cursor-theme 'DMX-Black'
|
||||||
gsettings set org.cinnamon.desktop.wm.preferences theme 'Mint-Y'
|
gsettings set org.cinnamon.desktop.wm.preferences theme 'Mint-Y'
|
||||||
gsettings set org.cinnamon.theme name "$theme"
|
gsettings set org.cinnamon.theme name "$theme"
|
||||||
gsettings set org.cinnamon.desktop.interface icon-theme "$theme"
|
gsettings set org.cinnamon.desktop.interface icon-theme "$theme"
|
||||||
gsettings set org.cinnamon.desktop.interface gtk-theme "$theme"
|
gsettings set org.cinnamon.desktop.interface gtk-theme "$theme"
|
||||||
# Ubuntu
|
# Ubuntu
|
||||||
gsettings set org.gnome.desktop.background picture-uri "file://$HOME/wallpaper/light.png"
|
|
||||||
gsettings set org.gnome.desktop.interface gtk-theme "Yaru-purple"
|
gsettings set org.gnome.desktop.interface gtk-theme "Yaru-purple"
|
||||||
gsettings set org.gnome.desktop.interface color-scheme "prefer-light"
|
gsettings set org.gnome.desktop.interface color-scheme "prefer-light"
|
||||||
theme=light
|
theme=light
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
gsettings set org.cinnamon.desktop.background picture-uri "file://$wallpaper"
|
||||||
|
gsettings set org.gnome.desktop.background picture-uri "file://$wallpaper"
|
||||||
|
|
||||||
for socket in $(find /tmp/ -maxdepth 1 -name "kitty-$USER-*")
|
for socket in $(find /tmp/ -maxdepth 1 -name "kitty-$USER-*")
|
||||||
do
|
do
|
||||||
if which kitty > /dev/null; then
|
if which kitty > /dev/null; then
|
||||||
|
|
Loading…
Reference in a new issue