Swapped scrot for maim to fix artifacting problems
This commit is contained in:
parent
d4b0c29917
commit
d9d0a15d36
18
bin/scrot.sh
18
bin/scrot.sh
|
@ -3,7 +3,7 @@
|
||||||
# Siina's bootleg screenshot capturer for use with global keybinds
|
# Siina's bootleg screenshot capturer for use with global keybinds
|
||||||
#
|
#
|
||||||
# Requires:
|
# Requires:
|
||||||
# - scrot: takes the screenshot
|
# - maim: takes the screenshot
|
||||||
# - convert: from imagemagick, used to crop single-monitor scrot
|
# - convert: from imagemagick, used to crop single-monitor scrot
|
||||||
# - mpv: plays audio file upon completion
|
# - mpv: plays audio file upon completion
|
||||||
# - boop.sh: uploads screenshot to boop.icu
|
# - boop.sh: uploads screenshot to boop.icu
|
||||||
|
@ -13,9 +13,8 @@
|
||||||
# TYPE CMD KEYBIND
|
# TYPE CMD KEYBIND
|
||||||
#
|
#
|
||||||
# Fullscreen scrot.sh Print
|
# Fullscreen scrot.sh Print
|
||||||
# Current monitor scrot.sh -a Meta+Shift+Print
|
# Main monitor scrot.sh --main Meta+Ctrl+Print
|
||||||
# Active window scrot.sh -u Meta+Print
|
# Active window/Selct scrot.sh -s Meta+Print
|
||||||
# Region scrot.sh -s Meta+Ctrl+Print
|
|
||||||
#
|
#
|
||||||
# TODO: Autodetect mpv and boop.sh to make them optional
|
# TODO: Autodetect mpv and boop.sh to make them optional
|
||||||
# TODO: Figure out how to capture a specific monitor, not just main
|
# TODO: Figure out how to capture a specific monitor, not just main
|
||||||
|
@ -24,16 +23,17 @@ screendir="$HOME/Nextcloud/Screenshots/"
|
||||||
sound="${HOME}/src/local-bin/sounds/shutter.ogg"
|
sound="${HOME}/src/local-bin/sounds/shutter.ogg"
|
||||||
filename="$(date +'%Y%m%d_%H%M%S').png"
|
filename="$(date +'%Y%m%d_%H%M%S').png"
|
||||||
resolution="1920x1080"
|
resolution="1920x1080"
|
||||||
|
args="-m 9 -u"
|
||||||
|
|
||||||
cd $screendir
|
cd $screendir
|
||||||
|
|
||||||
if [[ ${1} == "-a" ]]; then
|
if [[ ${1} == "--main" ]]; then
|
||||||
scrot $filename
|
args="${args} -g 1920x1080+0+0"
|
||||||
# Scrot doesn't capture per monitor so we're doing some jiggery
|
|
||||||
convert -crop 1920x1080\! $filename $filename
|
|
||||||
else
|
else
|
||||||
scrot $1 $filename
|
args="${args} ${1}"
|
||||||
fi
|
fi
|
||||||
|
maim $args $filename
|
||||||
|
|
||||||
mpv $sound
|
mpv $sound
|
||||||
$HOME/.local/bin/boop.sh "$screendir$filename"
|
$HOME/.local/bin/boop.sh "$screendir$filename"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue