diff options
author | Rasmus Steinke <rasi@xssn.at> | 2018-06-03 12:19:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-03 12:19:59 +0200 |
commit | ca1ae5dfcd8170ad3978f0846b523cc0ff8980a2 (patch) | |
tree | c36cd890682b3b38caf6e732347494ec85d9748d | |
parent | 3d20ecb4ba4b4f9af04e3e8c786bc67437fbd369 (diff) | |
parent | ba08df8a3ec14c292a5f7bb9e6711b239b98a1b9 (diff) |
Merge pull request #781 from NeQuissimus/XDG_CONFIG_HOME
rofi-theme-selector: Store config in XDG_CONFIG_HOME if set
-rwxr-xr-x | script/rofi-theme-selector | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector index 0646e4bc..4184ebcb 100755 --- a/script/rofi-theme-selector +++ b/script/rofi-theme-selector @@ -68,8 +68,8 @@ function find_themes() echo "${DIRS}" fi # Add user dir. - DIRS+=":${HOME}/.local/share/" - DIRS+=":${HOME}/.config/" + DIRS+=":${XDG_DATA_HOME:-${HOME}/.local/share}" + DIRS+=":${XDG_CONFIG_HOME:-${HOME}/.config}" for p in ${DIRS}; do p=${p%/} TD=${p}/rofi/themes @@ -164,7 +164,7 @@ Current theme: <b>${CUR}</b>""" ### function set_theme() { - CDIR="${HOME}/.config/rofi/" + CDIR="${XDG_CONFIG_HOME:-${HOME}/.config}/rofi" if [ ! -d "${CDIR}" ] then mkdir -p ${CDIR} |