Compare commits

...

2 Commits

Author SHA1 Message Date
xfnw d31fb73bfc obv: create 2023-12-08 18:39:27 -05:00
xfnw 20ef8069dc i3: change $mod+z screenshot to use fixed filename 2023-12-08 16:25:11 -05:00
2 changed files with 19 additions and 1 deletions

View File

@ -105,7 +105,7 @@ bindsym $mod+space focus mode_toggle
# take a screenshot
bindsym --release $mod+s exec "scrot -l mode=edge -s -e 'curl -F\\"file=@$f\\" https://0x0.st/ | xclip -selection clipboard; mv $f ~/Pictures/scrot/'"
bindsym --release $mod+z exec "scrot -l mode=edge -e 'mv $f ~/Pictures/scrot/'"
bindsym $mod+z exec "scrot -l mode=edge -oF ~/screen.png"
bindsym $mod+shift+s exec "scrot -l mode=edge -e 'curl -F\\"file=@$f\\" https://0x0.st/ | xclip -selection clipboard; mv $f ~/Pictures/scrot/'"
#bindsym --release $mod+x exec "scrot -l mode=edge -s -e 'curl -F\\"file=@$f\\" https://xfnw.ttm.sh/u.php | xclip -selection clipboard; mv $f ~/Pictures/scrot/'"

18
bin/obv Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
idiff() {
ffmpeg -i ~/screen.png -pattern_type glob -i 'i*.png' -filter_complex '[1]boxblur=1[m];[0][m]blend=all_mode=grainextract' o%03d.png
}
tile() {
montage -background black -geometry 683x -tile 2x o*.png m.png
}
mkdir -p ~/.cache/obv
cd ~/.cache/obv
while inotifywait -e close_write ~/screen.png
do
idiff
tile
done