1
0
mirror of https://github.com/Adam-Ant/dotfiles synced 2025-07-04 06:40:56 +00:00

Mega commit to bring up to modern standards

This commit is contained in:
2018-08-10 21:20:11 +01:00
parent 1b0053e218
commit 886b131899
14 changed files with 65 additions and 391 deletions

View File

@ -75,8 +75,7 @@ bindsym $mod+q kill
bindsym $mod+d exec --no-startup-id rofi -show run
#Screenshots!
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'
bindsym --release Print exec ~/.dotfiles/i3/screenshot.sh
#Gist the clipboard:
bindsym --release $mod+p exec gist -cpPR

View File

@ -15,7 +15,7 @@ R=$(file $icon | grep -o '[0-9]* x [0-9]*')
RX=$(echo $R | cut -d' ' -f 1)
RY=$(echo $R | cut -d' ' -f 3)
RES=$(xrandr --query | grep 'HDMI-0' | cut -f4 -d' ')
RES=$(xrandr --query | grep 'DP-1' | cut -f4 -d' ')
# monitor position/offset
SRX=$(echo $RES | cut -d'x' -f 1) # x pos

View File

@ -1,11 +1,15 @@
#!/bin/sh
set -e
basename=$(basename ${1})
FILEPATH="$HOME/Screenshots/$(date +%y%m%d-%H%M%S).png"
maim -s -b 2 -c 0.5,0.5,0.5,0.6 ${FILEPATH}
basename=$(basename ${FILEPATH})
# Full path to bypass ssh-agent
/usr/bin/scp -i ~/.ssh/screenshoter ${1} screenshots@srv2.cwgaming.co.uk:~/${basename}
/usr/bin/scp -i ~/.ssh/screenshoter ${FILEPATH} screenshots@web.spritsail.io:~/${basename}
echo "https://admnt.cf/i/${basename}" | xclip -r -selection c
echo "https://admnt.pw/i/${basename}" | xclip -r -selection c
notify-send -t 1500 "Screenshot: Upload Complete!" "https://admnt.cf/i/${basename}"
notify-send -t 1500 "Screenshot: Upload Complete!" "https://admnt.pw/i/${basename}"