Sophie Hirn 3 months ago
parent
commit
8d67ca32a8
No known key found for this signature in database
3 changed files with 10 additions and 5 deletions
  1. +1
    -1
      .config/beacon/hooks/20-feh
  2. +1
    -1
      .local/bin/lock
  3. +8
    -3
      .local/bin/mkwp

+ 1
- 1
.config/beacon/hooks/20-feh View File

@@ -5,4 +5,4 @@ check [ -n "$DISPLAY" ]

mkwp {%{wp-def}%}

feh --no-fehbg --bg-fill --no-xinerama "$HOME/wp/curr/all.png"
feh --no-fehbg --bg-fill --no-xinerama "$HOME/wp/curr/out/all.png"

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

@@ -8,7 +8,7 @@ pactl set-sink-mute @DEFAULT_SINK@ 1

i3lock \
--nofork \
--image="$HOME/wp/curr/all_blur.png" \
--image="$HOME/wp/curr/out/all_blur.png" \
--force-clock \
--indicator \
--inside-color="{%{console-bg-rgb}%}aa" --insidever-color="{%{console-bg-rgb}%}aa" --insidewrong-color="{%{console-bg-rgb}%}aa" \

+ 8
- 3
.local/bin/mkwp View File

@@ -1,12 +1,17 @@
#!/bin/bash

INDIR="$HOME/wp/curr"
OUTDIR="$HOME/wp/curr"
OUTDIR="$HOME/wp/curr/out"

mkdir -p "$OUTDIR"

gravity="Center"
if [ -e "$INDIR/gravity" ]; then
gravity="$(cat "$INDIR/gravity")"
fi

sedstr="\([0-9][0-9]*\)x\([0-9][0-9]*\)+\([0-9][0-9]*\)+\([0-9][0-9]*\)"
monitors="$(xrandr -q | grep '[0-9]*x[0-9]*+[0-9]*+[0-9]*' | sed 's:^\([^ ]*\).* \([0-9]*x[0-9]*+[0-9]*+[0-9]*\).*$:\1@\2:' | tr '\n' '-')"
monitors="$(xrandr -q | grep '[0-9]*x[0-9]*+[0-9]*+[0-9]*' | sed 's:^\([^ ]*\).* \([0-9]*x[0-9]*+[0-9]*+[0-9]*\).*$:\1@\2:' | tr '\n' '-')$gravity"

function getinfo() {
xrandr -q | grep "^$1" | grep -o "[0-9][0-9]*x[0-9][0-9]*+[0-9][0-9]*+[0-9][0-9]*"
@@ -83,7 +88,7 @@ function main() {
shift
done

run convert -respect-parenthesis "$INDIR/panorama.png" -gravity Center -resize "${off}x${maxh}^" -crop "${off}x${maxh}+0+0^" "${splitargs[@]}" "jpg:/dev/null"
run convert -respect-parenthesis "$INDIR/panorama.png" -gravity "$gravity" -resize "${off}x${maxh}^" -crop "${off}x${maxh}+0+0^" "${splitargs[@]}" "jpg:/dev/null"
fi

run convert -respect-parenthesis -size "$(screenres)" 'xc:#000000' "${joinargs[@]}" "$all"

Loading…
Cancel
Save