1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

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

This commit is contained in:
Dave Davenport 2021-08-25 16:32:06 +02:00
parent c56cc6a129
commit 1c5241a6ae

View file

@ -138,7 +138,9 @@ select_theme()
local MESG="""You can preview themes by hitting <b>Enter</b>. local MESG="""You can preview themes by hitting <b>Enter</b>.
<b>Alt-a</b> to accept the new theme. <b>Alt-a</b> to accept the new theme.
<b>Escape</b> to cancel <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= THEME_FLAG=
if [ -n "${SELECTED}" ] if [ -n "${SELECTED}" ]
then then
@ -173,8 +175,8 @@ set_theme()
mkdir -p "${CDIR}" mkdir -p "${CDIR}"
fi fi
get_link=$(readlink -f "${CDIR}/config.rasi") get_link=$(readlink -f "${CDIR}/config.rasi")
${SED} -i "/@import.*/d" "${get_link}" ${SED} -i "/@theme.*/d" "${get_link}"
echo "@import \"${1}\"" >> "${get_link}" echo "@theme \"${1}\"" >> "${get_link}"
} }
############################################################################################################ ############################################################################################################