Merge pull request #374 from dylanaraps/winwmtheme
wmtheme: Add support for Blackbox
This commit is contained in:
commit
8db5f2cbf0
11
neofetch
11
neofetch
|
@ -656,7 +656,7 @@ getwmtheme() {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
'Explorer')
|
'Explorer' | 'Bugn' | 'Windawesome' | 'Emerge' | 'Litestep')
|
||||||
path="/proc/registry/HKEY_CURRENT_USER/Software/Microsoft"
|
path="/proc/registry/HKEY_CURRENT_USER/Software/Microsoft"
|
||||||
path+="/Windows/CurrentVersion/Themes/CurrentTheme"
|
path+="/Windows/CurrentVersion/Themes/CurrentTheme"
|
||||||
|
|
||||||
|
@ -665,6 +665,15 @@ getwmtheme() {
|
||||||
wmtheme="${wmtheme%.*}"
|
wmtheme="${wmtheme%.*}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
'Blackbox')
|
||||||
|
path="$(wmic process get ExecutablePath | grep "blackbox")"
|
||||||
|
path="${path//'\'/'/'}"
|
||||||
|
|
||||||
|
wmtheme="$(grep "^session\.styleFile:" ${path/\.exe/.rc})"
|
||||||
|
wmtheme="${wmtheme/'session.styleFile: '}"
|
||||||
|
wmtheme="${wmtheme##*\\}"
|
||||||
|
wmtheme="${wmtheme%.*}"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
wmtheme="${wmtheme//\'}"
|
wmtheme="${wmtheme//\'}"
|
||||||
|
|
Reference in New Issue