···11diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector
22-index 0646e4bc..a19ec706 100755
22+index 0646e4bc..f827dbfe 100755
33--- a/script/rofi-theme-selector
44+++ b/script/rofi-theme-selector
55-@@ -164,7 +164,12 @@ Current theme: <b>${CUR}</b>"""
55+@@ -42,34 +42,7 @@ function find_themes()
66+ DIRS=${XDG_DATA_DIRS}
77+ OLDIFS=${IFS}
88+ IFS=:
99+- if [ -z "${XDG_DATA_DIRS}" ]
1010+- then
1111+- echo "XDG_DATA_DIRS needs to be set for this script to function correctly."
1212+- echo -n "Using dirs from \$PATH: "
1313+- DIRS=
1414+- # Iterate over items in $PATH
1515+- for p in ${PATH}; do
1616+- # Remove trailing / if exists.
1717+- x=${p%/}
1818+- # remove both /bin and /sbin and /games from end
1919+- x=${x%/bin}
2020+- x=${x%/sbin}
2121+- x=${x%/games}
2222+- # Add /share
2323+- x=${x}/share
2424+- # Check if entry exists Prepend : so :${x}: matches nicely
2525+- case ":${DIRS}" in
2626+- *$x:*);;
2727+- *) DIRS+="$x:";;
2828+- esac
2929+- done
3030+- # Remove trailing :
3131+- DIRS=${DIRS%:}
3232+- echo "${DIRS}"
3333+- fi
3434+- # Add user dir.
3535+- DIRS+=":${HOME}/.local/share/"
3636+- DIRS+=":${HOME}/.config/"
3737++ DIRS+=":%ROFIOUT%/"
3838+ for p in ${DIRS}; do
3939+ p=${p%/}
4040+ TD=${p}/rofi/themes
4141+@@ -164,7 +137,12 @@ Current theme: <b>${CUR}</b>"""
642 ###
743 function set_theme()
844 {
+1-1
pkgs/applications/misc/rofi/default.nix
···1313 };
14141515 # config.patch may be removed in the future - https://github.com/DaveDavenport/rofi/pull/781
1616- patches = [ ./nix.patch ./config.patch ];
1616+ patches = [ ./config.patch ];
17171818 preConfigure = ''
1919 patchShebangs "script"
-41
pkgs/applications/misc/rofi/nix.patch
···11-diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector
22-index 0646e4bc..f82e5ad9 100755
33---- a/script/rofi-theme-selector
44-+++ b/script/rofi-theme-selector
55-@@ -42,34 +42,8 @@ function find_themes()
66- DIRS=${XDG_DATA_DIRS}
77- OLDIFS=${IFS}
88- IFS=:
99-- if [ -z "${XDG_DATA_DIRS}" ]
1010-- then
1111-- echo "XDG_DATA_DIRS needs to be set for this script to function correctly."
1212-- echo -n "Using dirs from \$PATH: "
1313-- DIRS=
1414-- # Iterate over items in $PATH
1515-- for p in ${PATH}; do
1616-- # Remove trailing / if exists.
1717-- x=${p%/}
1818-- # remove both /bin and /sbin and /games from end
1919-- x=${x%/bin}
2020-- x=${x%/sbin}
2121-- x=${x%/games}
2222-- # Add /share
2323-- x=${x}/share
2424-- # Check if entry exists Prepend : so :${x}: matches nicely
2525-- case ":${DIRS}" in
2626-- *$x:*);;
2727-- *) DIRS+="$x:";;
2828-- esac
2929-- done
3030-- # Remove trailing :
3131-- DIRS=${DIRS%:}
3232-- echo "${DIRS}"
3333-- fi
3434-- # Add user dir.
3535-- DIRS+=":${HOME}/.local/share/"
3636-- DIRS+=":${HOME}/.config/"
3737-+
3838-+ DIRS+=":%ROFIOUT%/"
3939- for p in ${DIRS}; do
4040- p=${p%/}
4141- TD=${p}/rofi/themes