Added Screenshot script for i3, fixed writeup path for ranger, added aws centos to ssh, added some abbrevs for *.go in vim, added metasploit alias to .zshrc~

This commit is contained in:
TuDatTr
2020-05-13 05:20:44 +02:00
parent b19a19751f
commit 68b7df6495
13 changed files with 61 additions and 49 deletions

22
config/.scripts/screenshot.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/sh
d=$HOME/Pictures/Screenshots/$(date +%G-%m);
case $1 in
"screen"*)
filename=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)_$(date +%G-%m-%d_%H-%M-%S).png;
maim -f png $d/$filename;
dunstify -r 2 "Saved screenshot of screen in $d/$filename";
;;
"window"*)
filename=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)_$(date +%G-%m-%d_%H-%M-%S).png
maim -u -i $(xdotool getactivewindow) -f png $d/$filename;
dunstify -r 2 "Saved screenshot of window in $d/$filename";
;;
"area"*)
dunstify -r 2 'Taking screenshot from area.';
filename=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)_$(date +%G-%m-%d_%H-%M-%S).png;
maim -u -s -f png $d/$filename;
dunstify -r 2 "Saved in $d/$filename.";
;;
esac