1
0
Fork 0
dotfiles/.config/nsxiv/exec/win-title

12 lines
204 B
Plaintext
Raw Normal View History

2024-02-28 18:11:59 +01:00
#!/bin/sh
exec 2>/dev/null
filename="${1##*/}"
if [ -n "$4" ]; then # image mode
printf "%s" "nsxiv - ${filename} | ${4}x${5} ${6}% [${2}/${3}]"
else
printf "%s" "nsxiv - ${filename} [${2}/${3}]"
fi