[rofi-theme-selector] don't remove lines, but comment them.

This commit is contained in:
Dave Davenport 2021-08-26 16:40:19 +02:00 committed by Dave Davenport
parent d62e5f1e21
commit 6a6d5fbd39
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ set_theme()
mkdir -p "${CDIR}"
fi
get_link=$(readlink -f "${CDIR}/config.rasi")
${SED} -i "/@theme.*/d" "${get_link}"
${SED} -i 's/^\s*\(@theme\s\+".*"\)/\/\/\1/' "${get_link}"
echo "@theme \"${1}\"" >> "${get_link}"
}