forked from extern/nix-config
sxhkd: Add variable DPI support to screenshot.sh
This makes the feh window render correctly in both 96 and 192 DPI, as well as any multiples thereof.
This commit is contained in:
parent
5f0320f2bf
commit
bceec89b6a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user