瀏覽代碼

Added client side of screenshot upload and i3 bind

master
Josh Wolfe 4 年之前
父節點
當前提交
c1ce40cfd5
共有 2 個檔案被更改,包括 9 行新增0 行删除
  1. 8
    0
      bin/shot_upload
  2. 1
    0
      i3/.config/i3/config

+ 8
- 0
bin/shot_upload 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存