Sophie Hirn 2 years ago
parent
commit
c347d6ecf8
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions
  1. +1
    -1
      .local/bin/lock
  2. +5
    -1
      .local/bin/mkwp

+ 1
- 1
.local/bin/lock View File

@@ -9,7 +9,7 @@ pactl list short sinks | cut -f 1 | while read -r s; do
pacmd set-sink-mute "$s" 1
done

i3lock -n -i "$HOME/wp/curr/all.png"
i3lock -n -i "$HOME/wp/curr/all_blur.png"

pacmd <"/tmp/$(whoami).lock-sound"
rm "/tmp/$(whoami).lock-sound"

+ 5
- 1
.local/bin/mkwp View File

@@ -47,7 +47,8 @@ function run() {

function main() {
all="$OUTDIR/all-$monitors.png"
if [ ! -e "$all" ] \
all_blur="$OUTDIR/all-${monitors}_blur.png"
if [ ! -e "$all" ] || [ ! -e "$all_blur" ] \
|| [ "$INDIR/motif.png" -nt "$all" ] \
|| [ "$INDIR/panorama.png" -nt "$all" ] \
|| [ "$(realpath "$INDIR/motif.png")" -nt "$all" ] \
@@ -86,10 +87,13 @@ function main() {
fi

run convert -respect-parenthesis -size "$(screenres)" 'xc:#000000' "${joinargs[@]}" "$all"
run convert "$all" -blur 0x"$((maxh / 100))" "$all_blur"
fi

test -e "$OUTDIR/all.png" && rm "$OUTDIR/all.png"
ln -sf "$all" "$OUTDIR/all.png"
test -e "$OUTDIR/all_blur.png" && rm "$OUTDIR/all_blur.png"
ln -sf "$all_blur" "$OUTDIR/all_blur.png"
}

main "$@"

Loading…
Cancel
Save