Sophie Hirn 1年前
コミット
8d67ca32a8
この署名に対応する既知のキーがデータベースに存在しません
3個のファイルの変更10行の追加5行の削除
  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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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"

読み込み中…
キャンセル
保存