[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
parent 1c5241a6ae
commit 09e0f87658
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}"
}