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:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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}"
|
||||
|
Reference in New Issue
Block a user