mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
getwallpaper: Add nitrogen support
This commit is contained in:
6
fetch
6
fetch
@@ -962,7 +962,11 @@ getvisualstyle () {
|
|||||||
getwallpaper () {
|
getwallpaper () {
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux" | *"BSD")
|
"Linux" | *"BSD")
|
||||||
img="$(awk -F\' '/feh/ {printf $2}' $HOME/.fehbg)"
|
if type -p feh >/dev/null 2>&1; then
|
||||||
|
img="$(awk -F\' '/feh/ {printf $2}' "$HOME/.fehbg")"
|
||||||
|
elif type -p nitrogen >/dev/null 2>&1; then
|
||||||
|
img="$(awk -F'=' '/file/ {printf $2}' "$HOME/.config/nitrogen/bg-saved.cfg")"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
|
|||||||
Reference in New Issue
Block a user