2022.08.03

This commit is contained in:
2022-08-03 02:23:19 +02:00
parent bc07bbd275
commit 59164035aa
27997 changed files with 1169275 additions and 74438 deletions

View File

@ -4,7 +4,7 @@ icons="$HOME"/.local/share/Theme-Switcher
set_theme() {
# Check for Zafiro icon pack, icon packs won't be changed if Zafiro is not in use
current_icon_theme=$(xfconf-query -c xsettings -p /Net/IconThemeName)
[ "${current_icon_theme%-Icons-Light-Black-f}" = 'Zafiro' ] && Zafiro='True'
[ "${current_icon_theme%-dark}" = 'zafiro' ] && Zafiro='True'
if [ "${1##*-}" = 'Light' ]; then
yad --image "dialog-question" --title '' --button='DARK':1 --button='LIGHT':0 --text 'Select the panels theme:'
@ -13,19 +13,19 @@ set_theme() {
# Enable dark panels
xfconf-query -c xfce4-panel -p /panels/dark-mode -n -t bool -s true
# Use the dark icon pack
[ "$Zafiro" = 'True' ] && xfconf-query -c xsettings -p /Net/IconThemeName -n -t string -s Zafiro
[ "$Zafiro" = 'True' ] && xfconf-query -c xsettings -p /Net/IconThemeName -n -t string -s zafiro-dark
;;
0)
# Disable dark panels
xfconf-query -c xfce4-panel -p /panels/dark-mode -n -t bool -s false
# Use the light icon pack
[ "$Zafiro" = 'True' ] && xfconf-query -c xsettings -p /Net/IconThemeName -n -t string -s Zafiro-Icons-Light-Black-f
[ "$Zafiro" = 'True' ] && xfconf-query -c xsettings -p /Net/IconThemeName -n -t string -s zafiro
;;
*) exit ;;
esac
else
# Use the dark icon pack
[ "$Zafiro" = 'True' ] && xfconf-query -c xsettings -p /Net/IconThemeName -n -t string -s Zafiro
[ "$Zafiro" = 'True' ] && xfconf-query -c xsettings -p /Net/IconThemeName -n -t string -s zafiro-dark
fi
# Change the main theme to the chosen one
xfconf-query -c xsettings -p /Net/ThemeName -n -t string -s "Skeuos-$1"