diff options
author | Dave Davenport <qball@blame.services> | 2021-08-26 16:40:19 +0200 |
---|---|---|
committer | Dave Davenport <qball@blame.services> | 2021-08-26 16:40:19 +0200 |
commit | 09e0f876581ff6388af1faf8ce5b100511744693 (patch) | |
tree | 68fbac41992e48c0d72d6bf73a0e208d36728b47 /script | |
parent | 1c5241a6aefa7d38505dfbf99e8d8ff67b791ce8 (diff) |
[rofi-theme-selector] don't remove lines, but comment them.
Diffstat (limited to 'script')
-rwxr-xr-x | script/rofi-theme-selector | 2 |
1 files changed, 1 insertions, 1 deletions
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}" } |