aboutsummaryrefslogtreecommitdiff
path: root/files/.config/nnn/plugins/wallpaper
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2026-08-20 15:13:47 +0500
committerAnton Bobov <anton@bobov.name>2026-08-20 15:13:47 +0500
commit153c9344e93662984b1a5368a2722c10117db830 (patch)
tree46b44af16387c815ab6c783415ee7dc1b8287a5c /files/.config/nnn/plugins/wallpaper
parentccbc3e18f711c39482e9ed6045ed99b4da889a59 (diff)
nnn: update plugins
Diffstat (limited to 'files/.config/nnn/plugins/wallpaper')
-rwxr-xr-xfiles/.config/nnn/plugins/wallpaper10
1 files changed, 9 insertions, 1 deletions
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