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

[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

View file

@ -175,7 +175,7 @@ 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 "/@theme.*/d" "${get_link}" ${SED} -i 's/^\s*\(@theme\s\+".*"\)/\/\/\1/' "${get_link}"
echo "@theme \"${1}\"" >> "${get_link}" echo "@theme \"${1}\"" >> "${get_link}"
} }