getwallpaper: Also check that .fehbg exists
This commit is contained in:
parent
5996edbc9d
commit
b9b3f05fab
1 changed files with 1 additions and 1 deletions
2
fetch
2
fetch
|
@ -977,7 +977,7 @@ getvisualstyle () {
|
|||
getwallpaper () {
|
||||
case "$os" in
|
||||
"Linux" | *"BSD")
|
||||
if type -p feh >/dev/null 2>&1; then
|
||||
if type -p feh >/dev/null 2>&1 && [ -f "$HOME/.fehbg" ]; 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")"
|
||||
|
|
Loading…
Reference in a new issue