#!/bin/sh mon="1" [ -n "$2" ] && mon="$2" dest="$HOME/.config/wall$mon.png" cp "$1" "$dest" if [ -n "$SWAYSOCK" ]; then updisplay elif [ -n "$NIRI_SOCKET" ]; then killall swaybg setsid swaybg -i "$dest" -m fill& fi