From 09e0f876581ff6388af1faf8ce5b100511744693 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 26 Aug 2021 16:40:19 +0200 Subject: [PATCH] [rofi-theme-selector] don't remove lines, but comment them. --- script/rofi-theme-selector | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector index d564de53..a7431fb9 100755 --- a/script/rofi-theme-selector +++ b/script/rofi-theme-selector @@ -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}" }