[Theme] Add direction support to linear-gradient.
This commit is contained in:
@@ -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}"
|
||||
}
|
||||
|
||||
############################################################################################################
|
||||
|
Reference in New Issue
Block a user