Added screenshot filenamesEmacs:- Added yasnippet- Added company- Added flycheck- Added htmlize for reveal.js- Changed tabbing- Fixed org-insert-structure-template shortcut- display line numbers in c/cpp-mode
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
u:/home/tuan/Documents/Uni/Studium
|
||||
u:/home/tuan/Documents/Uni/Studium/2020&2021 Wintersemseter
|
||||
p:/home/tuan/Documents/Protokolle/FSE
|
||||
o:/home/tuan/.dotfiles/config
|
||||
m:/run/media
|
||||
a:/home/tuan/Documents/Arbeit
|
||||
a:/home/tuan/Documents/Uni/Studium/2020&2021 Wintersemseter/Programmierung in C-C++/Exercise/03/tran_3030462_ex03/task01
|
||||
l:/home/tuan/Local
|
||||
c:/home/tuan/Documents/CTF
|
||||
t:/home/tuan/Templates
|
||||
w:/home/tuan/workspace_l/Projects
|
||||
k:/home/tuan/Documents/Uni/Studium/2017&2018 Wintersemester/Rechnerstrukturen und Betriebssysteme [4,0]/Rechnerstrukturen
|
||||
q:/home/tuan/.nextcloud/Quick Drop
|
||||
':/home/tuan/.dotfiles/emacs/.emacs.d/snippets
|
||||
':/home/tuan/.emacs.d/snippets/c++-mode
|
||||
e:/home/tuan/Documents/CTF/TryHackMe/Ice/2_Recon
|
||||
|
||||
24
config/.scripts/project.sh
Executable file
24
config/.scripts/project.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
type xrandr >/dev/null 2>&1 || { echo >&2 "I require maim but it's not installed. Aborting."; exit 1; }
|
||||
|
||||
mon0=eDPI1
|
||||
mon1=HDMI1
|
||||
case $1 in
|
||||
"mon0"*)
|
||||
xrandr --output $mon0 --auto
|
||||
xrandr --output $mon1 --off
|
||||
;;
|
||||
"duplicate"*)
|
||||
xrandr --output $mon0 --auto
|
||||
xrandr --output $mon1 --same-as $mon0
|
||||
;;
|
||||
"extend"*)
|
||||
xrandr --output $mon0 --auto
|
||||
xrandr --output $mon1 --left-of $mon0
|
||||
;;
|
||||
"mon1"*)
|
||||
xrandr --output $mon0 --off
|
||||
xrandr --output $mon1 --auto
|
||||
;;
|
||||
esac
|
||||
@@ -6,22 +6,23 @@ type xclip >/dev/null 2>&1 || { echo >&2 "I require xclip but it's not installed
|
||||
type xdotool >/dev/null 2>&1 || { echo >&2 "I require xdotool but it's not installed. Aborting."; exit 1; }
|
||||
|
||||
d=$HOME/Pictures/Screenshots/$(date +%G-%m);
|
||||
fd=$(date +%G-%m-%d_%H-%M-%S)
|
||||
case $1 in
|
||||
"screen"*)
|
||||
filename=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)_$(date +%G-%m-%d_%H-%M-%S).png;
|
||||
filename=$fd-$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm).png;
|
||||
maim -f png $d/$filename;
|
||||
dunstify -r 2 "Saved screenshot of screen in $d/$filename";
|
||||
xclip -selection clipboard -t image/png -i $d/$filename
|
||||
;;
|
||||
"window"*)
|
||||
filename=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)_$(date +%G-%m-%d_%H-%M-%S).png
|
||||
filename=$fd-$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm).png
|
||||
maim -u -i $(xdotool getactivewindow) -f png $d/$filename;
|
||||
dunstify -r 2 "Saved screenshot of window in $d/$filename";
|
||||
xclip -selection clipboard -t image/png -i $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;
|
||||
filename=$fd-$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm).png;
|
||||
maim -u -s -f png $d/$filename;
|
||||
dunstify -r 2 "Saved in $d/$filename.";
|
||||
xclip -selection clipboard -t image/png -i $d/$filename
|
||||
|
||||
Reference in New Issue
Block a user