Skip to content

Commit

Permalink
[PR] dylanaraps/neofetch#1831 from vincentbernat - Use XSETTINGS to g…
Browse files Browse the repository at this point in the history
…et theme without a DE

Upstream PR: dylanaraps/neofetch#1831
Thanks to @vincentbernat

Co-authored-by: Vincent Bernat <[email protected]>
  • Loading branch information
hykilpikonna and vincentbernat committed Aug 11, 2022
2 parents 26495b5 + f2fefb5 commit 9d48719
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -3536,6 +3536,9 @@ get_style() {
fi

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

0 comments on commit 9d48719

Please sign in to comment.