diff options
Diffstat (limited to 'files/.config/nnn/plugins/wallpaper')
| -rwxr-xr-x | files/.config/nnn/plugins/wallpaper | 10 |
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 |
