mirror of https://github.com/davatorium/rofi.git
rofi-theme-selector: Store config in XDG_CONFIG_HOME if set
This commit is contained in:
parent
7f83fa3dd3
commit
abeddb6a57
|
@ -164,7 +164,12 @@ Current theme: <b>${CUR}</b>"""
|
||||||
###
|
###
|
||||||
function set_theme()
|
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}" ]
|
if [ ! -d "${CDIR}" ]
|
||||||
then
|
then
|
||||||
mkdir -p ${CDIR}
|
mkdir -p ${CDIR}
|
||||||
|
|
Loading…
Reference in New Issue