Compare commits

...

2 Commits

Author SHA1 Message Date
xfnw bea6615106 vim: make folds actually readable 2023-12-18 18:31:10 -05:00
xfnw 42c22451aa obv: do stuff in /tmp instead 2023-12-09 15:37:00 -05:00
3 changed files with 10 additions and 6 deletions

View File

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

View File

@ -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
View File

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