mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00: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})
|
||||
FN=$(basename ${file})
|
||||
NAME=${FN%.*}
|
||||
USER=$(${SED} -n 's/^.*User: \(.*\)/\1/p' ${file} )
|
||||
USER=$(${SED} -n 's/^.*User: \(.*\)/\1/p' ${file} | head -n 1 )
|
||||
if [ -z "${USER}" ]
|
||||
then
|
||||
theme_names+=(${NAME})
|
||||
|
@ -143,7 +143,7 @@ Current theme: <b>${CUR}</b>"""
|
|||
then
|
||||
THEME_FLAG="-theme ${themes[${SELECTED}]}"
|
||||
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=$?
|
||||
if [ ${RTR} = 10 ]
|
||||
then
|
||||
|
@ -153,7 +153,7 @@ Current theme: <b>${CUR}</b>"""
|
|||
return 1;
|
||||
fi
|
||||
CUR=${theme_names[${RES}]}
|
||||
SELECTED=$(( ${RES} -1 ))
|
||||
SELECTED=${RES}
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue