1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

rofi-theme-selector: Store config in XDG_CONFIG_HOME if set

This commit is contained in:
Tim Steinbach 2018-03-11 11:56:14 -04:00
parent 7f83fa3dd3
commit abeddb6a57
No known key found for this signature in database
GPG key ID: 472BFCCA96BD0EDA

View file

@ -164,7 +164,12 @@ Current theme: <b>${CUR}</b>"""
###
function set_theme()
{
CDIR="${HOME}/.config/rofi/"
if [ -d "${XDG_CONFIG_HOME}" ]; then
CDIR="${XDG_CONFIG_HOME}/rofi/"
else
CDIR="${HOME}/.config/rofi/"
fi
if [ ! -d "${CDIR}" ]
then
mkdir -p ${CDIR}