mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 03:41:27 +00:00
wallpaper plugin: remove unneeded code
This commit is contained in:
parent
66447d52a7
commit
06d8da9052
|
@ -8,14 +8,8 @@
|
||||||
# Shell: POSIX compliant
|
# Shell: POSIX compliant
|
||||||
# Author: juacq97
|
# Author: juacq97
|
||||||
|
|
||||||
selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
|
|
||||||
resp=
|
resp=
|
||||||
|
|
||||||
add_file ()
|
|
||||||
{
|
|
||||||
printf '%s\0' "$@" >> "$selection"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
if [ "$(file --mime-type "$1" | awk '{print $NF}' | awk -F '/' '{print $1}')" = "image" ]; then
|
if [ "$(file --mime-type "$1" | awk '{print $NF}' | awk -F '/' '{print $1}')" = "image" ]; then
|
||||||
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
|
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
|
||||||
|
|
Loading…
Reference in a new issue