From abeddb6a576de2f5b8077268af664c9dc53b0372 Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Sun, 11 Mar 2018 11:56:14 -0400 Subject: [PATCH] rofi-theme-selector: Store config in XDG_CONFIG_HOME if set --- script/rofi-theme-selector | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector index 0646e4bc..38467df0 100755 --- a/script/rofi-theme-selector +++ b/script/rofi-theme-selector @@ -164,7 +164,12 @@ Current theme: ${CUR}""" ### 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}