Compare commits
2 Commits
95383ed628
...
d31fb73bfc
Author | SHA1 | Date |
---|---|---|
xfnw | d31fb73bfc | |
xfnw | 20ef8069dc |
|
@ -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/'"
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue