mirror of
https://github.com/jarun/nnn.git
synced 2024-11-13 07:26:33 +03:00
Updated wall plugin to the standard utility file
This commit is contained in:
parent
f4baa394be
commit
f23452396e
@ -12,7 +12,7 @@ cmd_exists () {
|
||||
}
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
if [ "$(mimetype --output-format %m "$1" | awk -F '/' '{print $1}')" = "image" ]; then
|
||||
if [ "$(file --mime-type "$1" | awk '{print $2}' | awk -F '/' '{print $1}')" = "image" ]; then
|
||||
if [ "$(cmd_exists nitrogen)" -eq "0" ]; then
|
||||
nitrogen --set-zoom-fill --save "$1"
|
||||
elif [ "$(cmd_exists wal)" -eq "0" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user