Skip to content

Commit

Permalink
wallpaper plugin: remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
Xerillic committed Sep 13, 2023
1 parent 66447d5 commit 06d8da9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions plugins/wallpaper
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,8 @@
# Shell: POSIX compliant
# Author: juacq97

selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
resp=

add_file ()
{
printf '%s\0' "$@" >> "$selection"
}

if [ -n "$1" ]; then
if [ "$(file --mime-type "$1" | awk '{print $NF}' | awk -F '/' '{print $1}')" = "image" ]; then
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
Expand Down

0 comments on commit 06d8da9

Please sign in to comment.