Skip to content

Commit

Permalink
cleaning up logic
Browse files Browse the repository at this point in the history
  • Loading branch information
alaughlin committed Jan 5, 2019
1 parent e64b4d2 commit 9281ae5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -2599,13 +2599,12 @@ get_style() {
if [[ "$kde" == "cursorTheme" ]]; then
if [[ -f "${kde_config_dir}/kcminputrc" ]]; then
kde_config_file="${kde_config_dir}/kcminputrc"
kde_theme="$(grep "cursorTheme" "$kde_config_file")"
kde_theme="${kde_theme/*=}"
elif [[ -f "${kde_config_dir}/startupconfig" ]]; then
kde="cursortheme"
kde_config_file="${kde_config_dir}/startupconfig"
kde_theme="$(grep "cursortheme" "$kde_config_file")"
kde_theme="${kde_theme/*=}"
fi
kde_theme="$(grep "${kde}" "$kde_config_file")"
kde_theme="${kde_theme/*=}"
fi
kde_theme="$kde_theme [KDE], "
else
Expand Down

0 comments on commit 9281ae5

Please sign in to comment.