mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
19 lines
484 B
Diff
19 lines
484 B
Diff
diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector
|
|
index 0646e4bc..a19ec706 100755
|
|
--- a/script/rofi-theme-selector
|
|
+++ b/script/rofi-theme-selector
|
|
@@ -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}
|