summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscript/rofi-theme-selector6
1 files changed, 4 insertions, 2 deletions
diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector
index 3f380992..8dba9530 100755
--- a/script/rofi-theme-selector
+++ b/script/rofi-theme-selector
@@ -24,7 +24,7 @@ then
exit 1
fi
-TMP_CONFIG_FILE=$(${MKTEMP})
+TMP_CONFIG_FILE=$(${MKTEMP}).rasi
##
# Array with parts to the found themes.
@@ -103,7 +103,9 @@ function find_themes()
##
function create_config_copy()
{
- ${ROFI} -dump-xresources > ${TMP_CONFIG_FILE}
+ ${ROFI} -dump-config > ${TMP_CONFIG_FILE}
+ # remove theme entry.
+ sed -i 's/^\s*theme:\s\+".*"\s*;//g' ${TMP_CONFIG_FILE}
}
###