mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-15 16:37:13 +00:00
getwallpaper: Add nitrogen support
This commit is contained in:
6
fetch
6
fetch
@@ -962,7 +962,11 @@ getvisualstyle () {
|
||||
getwallpaper () {
|
||||
case "$os" in
|
||||
"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")
|
||||
|
||||
Reference in New Issue
Block a user