mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[Theme] Update rofi-theme-selector to append '@theme'
This commit is contained in:
parent
c56cc6a129
commit
1c5241a6ae
1 changed files with 5 additions and 3 deletions
|
@ -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}"
|
||||
}
|
||||
|
||||
############################################################################################################
|
||||
|
|
Loading…
Reference in a new issue