mirror of
https://github.com/Adam-Ant/dotfiles
synced 2024-11-05 01:06:21 +00:00
Use custom screenshot tool instead of imgur-screenshot
This commit is contained in:
parent
6099f3626f
commit
1b0053e218
@ -75,8 +75,8 @@ bindsym $mod+q kill
|
||||
bindsym $mod+d exec --no-startup-id rofi -show run
|
||||
|
||||
#Screenshots!
|
||||
bindsym --release Print exec imgur-screenshot -s
|
||||
bindsym --release $mod+Print exec imgur-screenshot -f
|
||||
bindsym --release Print exec scrot -s ~/Screenshots/%y%m%d-%H%M%S.png -e '~/.dotfiles/i3/screenshot.sh $f'
|
||||
bindsym --release $mod+Print exec scrot ~/Screenshots/%y%m%d-%H%M%S.png -e '~/.dotfiles/i3 /screenshot.sh $f'
|
||||
|
||||
#Gist the clipboard:
|
||||
bindsym --release $mod+p exec gist -cpPR
|
||||
|
11
i3/screenshot.sh
Executable file
11
i3/screenshot.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
basename=$(basename ${1})
|
||||
|
||||
# Full path to bypass ssh-agent
|
||||
/usr/bin/scp -i ~/.ssh/screenshoter ${1} screenshots@srv2.cwgaming.co.uk:~/${basename}
|
||||
|
||||
echo "https://admnt.cf/i/${basename}" | xclip -r -selection c
|
||||
|
||||
notify-send -t 1500 "Screenshot: Upload Complete!" "https://admnt.cf/i/${basename}"
|
Loading…
Reference in New Issue
Block a user