There doesn't seem to be an easy way to change the desktop font color. This script does that. It does not have the set a shadow and the specs function yet.
Some more refinement from better coders will get this in KLV as a utility perhaps.
deskfontcolor.sh
Code: Select all
#! /bin/bash
#
# Xfce script for changing desktop font color
# name : deskfontcolor
# made by : secureIT modifed by : rockedge Dec-15-2022
# script needs these dependencies : yad
# put it in /usr/local/bin
# make it executeable and append it to a launcher
#
cd ~/.config/gtk-3.0/
#
# next command will look if the entry still exists
# if so, it will delete the entry and the 3 following lines that belongs to it
#
sed -i '/XfdesktopIconView.label {/,+3 d' ./gtk.css
#
# select font-color and write to variable color
#
color=`yad --title="Select FontColor" --color --center --button=OK:0`
#
# write entry to gtk.css
#
echo -e "XfdesktopIconView.label {
color: $color;
text-shadow: none; }" >> gtk.css
#
# Informs about the execution and asks if the user wants to log out
#
if yad \
--image "dialog-question" \
--title "Changes Done !" \
--button=gtk-yes:0 \
--button=gtk-no:1 \
--text "Done ! The changes will take effect the next time you log in. Would you like to log out now ?"
then
xfce4-session-logout
else
exit 1
fi