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:
parent
7f83fa3dd3
commit
abeddb6a57
1 changed files with 6 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue