mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
fix user being split from theme name
This commit is contained in:
parent
8deedd8645
commit
aa0cd52a7f
1 changed files with 3 additions and 3 deletions
|
@ -81,7 +81,7 @@ function find_themes()
|
||||||
themes+=(${file})
|
themes+=(${file})
|
||||||
FN=$(basename ${file})
|
FN=$(basename ${file})
|
||||||
NAME=${FN%.*}
|
NAME=${FN%.*}
|
||||||
USER=$(${SED} -n 's/^.*User: \(.*\)/\1/p' ${file} )
|
USER=$(${SED} -n 's/^.*User: \(.*\)/\1/p' ${file} | head -n 1 )
|
||||||
if [ -z "${USER}" ]
|
if [ -z "${USER}" ]
|
||||||
then
|
then
|
||||||
theme_names+=(${NAME})
|
theme_names+=(${NAME})
|
||||||
|
@ -143,7 +143,7 @@ Current theme: <b>${CUR}</b>"""
|
||||||
then
|
then
|
||||||
THEME_FLAG="-theme ${themes[${SELECTED}]}"
|
THEME_FLAG="-theme ${themes[${SELECTED}]}"
|
||||||
fi
|
fi
|
||||||
RES=$( create_theme_list | ${ROFI} ${THEME_FLAG} ${MORE_FLAGS[@]} -cycle -selected-row "$(( ${SELECTED} +1 ))" -mesg "${MESG}")
|
RES=$( create_theme_list | ${ROFI} ${THEME_FLAG} ${MORE_FLAGS[@]} -cycle -selected-row "${SELECTED}" -mesg "${MESG}")
|
||||||
RTR=$?
|
RTR=$?
|
||||||
if [ ${RTR} = 10 ]
|
if [ ${RTR} = 10 ]
|
||||||
then
|
then
|
||||||
|
@ -153,7 +153,7 @@ Current theme: <b>${CUR}</b>"""
|
||||||
return 1;
|
return 1;
|
||||||
fi
|
fi
|
||||||
CUR=${theme_names[${RES}]}
|
CUR=${theme_names[${RES}]}
|
||||||
SELECTED=$(( ${RES} -1 ))
|
SELECTED=${RES}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue