miriway-background
raw| 1 | #! /bin/bash |
| 2 | set -e |
| 3 | |
| 4 | bindir=$(dirname $0) |
| 5 | |
| 6 | if [ -e "$1" ]; then |
| 7 | exec swaybg --image "$1" --mode fill --output '*' |
| 8 | elif [ -e "${bindir}/../share/backgrounds/miriway.png" ]; then |
| 9 | exec swaybg --image "${bindir}/../share/backgrounds/miriway.png" --mode fill --output '*' |
| 10 | else |
| 11 | exec swaybg --color '#3f3f3f' --output '*' |
| 12 | fi |