Browse Source

Added client side of screenshot upload and i3 bind

master
Josh Wolfe 3 years ago
parent
commit
c1ce40cfd5
2 changed files with 9 additions and 0 deletions
  1. 8
    0
      bin/shot_upload
  2. 1
    0
      i3/.config/i3/config

+ 8
- 0
bin/shot_upload View File

@@ -0,0 +1,8 @@
#!/bin/bash

scrot -q 100 -s ~/Pictures/pic_for_upload.png
scp ~/Pictures/pic_for_upload.png vps:~

R=`~/bin/anumgen 8`
echo emacs.guru/image/$R.png | xclip -selection clipboard
echo $R | ssh vps "cat > ~/upload_string && ~/process_photo"

+ 1
- 0
i3/.config/i3/config View File

@@ -24,6 +24,7 @@ smart_gaps on
bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 2%+
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 2%-
bindsym XF86AudioMute exec amixer set Master toggle
bindsym --release Print exec ~/bin/shot_upload

# brightness keys
bindsym XF86MonBrightnessUp exec xbacklight -inc 5

Loading…
Cancel
Save