Skip to content

Commit 9d48719

Browse files
[PR] dylanaraps/neofetch#1831 from vincentbernat - Use XSETTINGS to get theme without a DE
Upstream PR: dylanaraps/neofetch#1831 Thanks to @vincentbernat Co-authored-by: Vincent Bernat <vincent@bernat.ch>
2 parents 26495b5 + f2fefb5 commit 9d48719

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

neofetch

+3
Original file line numberDiff line numberDiff line change
@@ -3536,6 +3536,9 @@ get_style() {
35363536
fi
35373537

35383538
# Check for general GTK3 Theme.
3539+
if [[ -z "$gtk3_theme" ]] && type -p dump_xsettings >/dev/null; then
3540+
gtk3_theme="$(dump_xsettings | sed -n "s,^${xfconf#/} ,,p")"
3541+
fi
35393542
if [[ -z "$gtk3_theme" ]]; then
35403543
if [[ -f "${XDG_CONFIG_HOME}/gtk-3.0/settings.ini" ]]; then
35413544
gtk3_theme="$(grep "^[^#]*$name" "${XDG_CONFIG_HOME}/gtk-3.0/settings.ini")"

0 commit comments

Comments
 (0)