WM Theme [KDE]: Fix Aurorae themes
For themes with underscores in the name, only the last part was displayed. #766
This commit is contained in:
parent
9f5ab665c9
commit
94b9b3ad0c
2
neofetch
2
neofetch
|
@ -778,7 +778,7 @@ get_wm_theme() {
|
||||||
kde_config_dir
|
kde_config_dir
|
||||||
|
|
||||||
if [[ -f "${kde_config_dir}/kwinrc" ]]; then
|
if [[ -f "${kde_config_dir}/kwinrc" ]]; then
|
||||||
wm_theme="$(awk '/theme=/{gsub(/theme=.*_/,"",$0); print $0; exit}' "${kde_config_dir}/kwinrc")"
|
wm_theme="$(awk '/theme=/{gsub(/theme=.*qml_|theme=.*svg__/,"",$0); print $0; exit}' "${kde_config_dir}/kwinrc")"
|
||||||
[[ -z "$wm_theme" ]] && wm_theme="$(awk '/library=org.kde/{gsub(/library=org.kde./,"",$0); print $0; exit}' "${kde_config_dir}/kwinrc")"
|
[[ -z "$wm_theme" ]] && wm_theme="$(awk '/library=org.kde/{gsub(/library=org.kde./,"",$0); print $0; exit}' "${kde_config_dir}/kwinrc")"
|
||||||
[[ -z "$wm_theme" ]] && wm_theme="$(awk '/PluginLib=kwin3_/{gsub(/PluginLib=kwin3_/,"",$0); print $0; exit}' "${kde_config_dir}/kwinrc")"
|
[[ -z "$wm_theme" ]] && wm_theme="$(awk '/PluginLib=kwin3_/{gsub(/PluginLib=kwin3_/,"",$0); print $0; exit}' "${kde_config_dir}/kwinrc")"
|
||||||
|
|
||||||
|
|
Reference in New Issue