Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ print_info() {
info "WM Theme" wm_theme
info "Theme" theme
info "Icons" icons
info "Cursor" cursor
info "Terminal" term
info "Terminal Font" term_font
info "CPU" cpu
Expand Down Expand Up @@ -2594,6 +2595,17 @@ get_style() {
kde_font_size="${kde_font_size/,*}"
kde_theme="${kde_theme/,*} ${kde_theme/*,} ${kde_font_size}"
fi

if [[ "$kde" == "cursorTheme" ]]; then
if [[ -f "${kde_config_dir}/kcminputrc" ]]; then
kde_config_file="${kde_config_dir}/kcminputrc"
elif [[ -f "${kde_config_dir}/startupconfig" ]]; then
kde="cursortheme"
kde_config_file="${kde_config_dir}/startupconfig"
fi
kde_theme="$(grep "${kde}" "$kde_config_file")"
kde_theme="${kde_theme/*=}"
fi
kde_theme="$kde_theme [KDE], "
else
err "Theme: KDE config files not found, skipping."
Expand Down Expand Up @@ -2733,6 +2745,17 @@ get_font() {
font="$theme"
}

get_cursor() {
name="gtk-cursor-theme-name"
gsettings="cursor-theme"
gconf="cursor_theme"
xfconf="/Gtk/CursorThemeName"
kde="cursorTheme"

get_style
cursor="$theme"
}

get_term() {
# If function was run, stop here.
((term_run == 1)) && return
Expand Down