[Theme] Update rofi-theme-selector to append '@theme'

This commit is contained in:
Dave Davenport 2021-08-25 16:32:06 +02:00 committed by Dave Davenport
parent ab6536a545
commit d62e5f1e21
1 changed files with 5 additions and 3 deletions

View File

@ -138,7 +138,9 @@ select_theme()
local MESG="""You can preview themes by hitting <b>Enter</b>.
<b>Alt-a</b> to accept the new theme.
<b>Escape</b> to cancel
Current theme: <b>${CUR}</b>"""
Current theme: <b>${CUR}</b>
<span weight=\"bold\" size=\"xx-small\">When setting a new theme this will override previous theme settings.
Please update your config file if you have local modifications.</span>"""
THEME_FLAG=
if [ -n "${SELECTED}" ]
then
@ -173,8 +175,8 @@ set_theme()
mkdir -p "${CDIR}"
fi
get_link=$(readlink -f "${CDIR}/config.rasi")
${SED} -i "/@import.*/d" "${get_link}"
echo "@import \"${1}\"" >> "${get_link}"
${SED} -i "/@theme.*/d" "${get_link}"
echo "@theme \"${1}\"" >> "${get_link}"
}
############################################################################################################