diff --git a/sxhkd/.config/sxhkd/screenshot.sh b/sxhkd/.config/sxhkd/screenshot.sh index 811cb3c..f6a5821 100755 --- a/sxhkd/.config/sxhkd/screenshot.sh +++ b/sxhkd/.config/sxhkd/screenshot.sh @@ -2,6 +2,9 @@ # New Start: A modern Arch workflow built with an emphasis on functionality. # Copyright (C) 2017-2018 Donovan Glover +SCREENSHOT_DPI=$(xrdb -query | grep Xft.dpi | cut -f 2) +SCREENSHOT_SCALE=$(($SCREENSHOT_DPI / 96)) + DATETIME=`date +%F_%H%M%S` shotgun ~/$DATETIME.png -feh ~/$DATETIME.png --geometry 3200x1800 --scale-down +feh ~/$DATETIME.png --geometry $((1600 * $SCREENSHOT_SCALE))x$((900 * $SCREENSHOT_SCALE)) --scale-down