[Theme] Add direction support to linear-gradient.

This commit is contained in:
Dave Davenport
2021-06-14 15:14:41 +02:00
parent 7cf0385681
commit 5c5428bd11
12 changed files with 96 additions and 312 deletions

View File

@@ -174,24 +174,9 @@ function set_theme()
then
mkdir -p ${CDIR}
fi
if [ -f "${CDIR}/config.rasi" ]
then
get_link=$(readlink -f "${CDIR}/config.rasi")
${SED} -i "/@import.*/d" "${get_link}"
echo "@import \"${1}\"" >> "${get_link}"
else
if [ ! -e "${CDIR}/config" ]
then
# No file.
echo "rofi.theme: ${1}" >> "${CDIR}/config"
elif [ -f "${CDIR}/config" ]
then
# Regular file
get_link=$(readlink -f "${CDIR}/config")
${SED} -i "/rofi\.theme: .*\.rasi$/d" "${get_link}"
echo "rofi.theme: ${1}" >> "${get_link}"
fi
fi
get_link=$(readlink -f "${CDIR}/config.rasi")
${SED} -i "/@import.*/d" "${get_link}"
echo "@import \"${1}\"" >> "${get_link}"
}
############################################################################################################