Compare commits
2 Commits
01b3b5b8e8
...
bea6615106
Author | SHA1 | Date |
---|---|---|
xfnw | bea6615106 | |
xfnw | 42c22451aa |
|
@ -105,8 +105,8 @@ bindsym $mod+space focus mode_toggle
|
||||||
|
|
||||||
# take a screenshot
|
# 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+s exec "scrot -l mode=edge -s -e 'curl -F\\"file=@$f\\" https://0x0.st/ | xclip -selection clipboard; mv $f ~/Pictures/scrot/'"
|
||||||
bindsym $mod+z exec "scrot -l mode=edge -oF ~/screen.png"
|
bindsym $mod+z exec "scrot -l mode=edge -oF /tmp/screen.png"
|
||||||
bindsym $mod+shift+z exec "scrot -l mode=edge -F ~/screen.png -e 'cp $f ~/screen.png'"
|
bindsym $mod+shift+z exec "scrot -l mode=edge -F /tmp/screen.png -e 'cp $f /tmp/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 $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/'"
|
#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/'"
|
||||||
|
|
|
@ -24,4 +24,5 @@ highlight Directory ctermfg=2 guifg=#00c000
|
||||||
highlight StatusLine ctermfg=11 ctermbg=12 cterm=none guifg=#ffff00 guibg=#0000ff gui=none
|
highlight StatusLine ctermfg=11 ctermbg=12 cterm=none guifg=#ffff00 guibg=#0000ff gui=none
|
||||||
highlight Normal guifg=#ffffff guibg=#000000
|
highlight Normal guifg=#ffffff guibg=#000000
|
||||||
highlight Search ctermbg=3 guibg=#c0c000
|
highlight Search ctermbg=3 guibg=#c0c000
|
||||||
|
highlight Folded ctermfg=15 ctermbg=8
|
||||||
|
|
||||||
|
|
11
bin/obv
11
bin/obv
|
@ -1,17 +1,20 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
idiff() {
|
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
|
ffmpeg -i /tmp/screen.png -pattern_type glob -i 'i*.png' -filter_complex '[1]boxblur=1[m];[0][m]blend=all_mode=grainextract' o%03d.png
|
||||||
}
|
}
|
||||||
|
|
||||||
tile() {
|
tile() {
|
||||||
montage -background black -geometry 683x o*.png m.png
|
montage -background black -geometry 683x o*.png m.png
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p ~/.cache/obv
|
mkdir -p /tmp/obv
|
||||||
cd ~/.cache/obv
|
cd /tmp/obv
|
||||||
|
|
||||||
while inotifywait -e close_write ~/screen.png
|
idiff
|
||||||
|
tile
|
||||||
|
|
||||||
|
while inotifywait -e close_write /tmp/screen.png
|
||||||
do
|
do
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
idiff
|
idiff
|
||||||
|
|
Loading…
Reference in New Issue