From 153c9344e93662984b1a5368a2722c10117db830 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 20 Aug 2026 15:13:47 +0500 Subject: nnn: update plugins --- files/.config/nnn/plugins/wallpaper | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'files/.config/nnn/plugins/wallpaper') diff --git a/files/.config/nnn/plugins/wallpaper b/files/.config/nnn/plugins/wallpaper index 2017fbd..966e7ce 100755 --- a/files/.config/nnn/plugins/wallpaper +++ b/files/.config/nnn/plugins/wallpaper @@ -8,11 +8,19 @@ # Shell: POSIX compliant # Author: juacq97 +resp= + if [ -n "$1" ]; then if [ "$(file --mime-type "$1" | awk '{print $NF}' | awk -F '/' '{print $1}')" = "image" ]; then if [ "$XDG_SESSION_TYPE" = "x11" ]; then if type nitrogen >/dev/null 2>&1; then - nitrogen --set-zoom-fill --save "$1" + printf "Set to full desktop or a specific monitors? [0, 1, etc. Defaults to full.]" + read -r resp + if [ "$resp" != "" ]; then + nitrogen --set-zoom-fill --save "$1" --head="$resp" + else + nitrogen --set-zoom-fill --save "$1" + fi elif type wal >/dev/null 2>&1; then wal -i "$1" else -- cgit v1.2.3