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

[ThemeSelector] Use rasi config file format, not xresources.

This commit is contained in:
Dave Davenport 2020-06-17 13:53:18 +02:00
parent 8c51b9ec3e
commit 6bf823267e

View file

@ -24,7 +24,7 @@ then
exit 1 exit 1
fi fi
TMP_CONFIG_FILE=$(${MKTEMP}) TMP_CONFIG_FILE=$(${MKTEMP}).rasi
## ##
# Array with parts to the found themes. # Array with parts to the found themes.
@ -103,7 +103,9 @@ function find_themes()
## ##
function create_config_copy() 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}
} }
### ###