Created
May 4, 2016 08:04
-
-
Save vincentbernat/b81ff2eb11eb7a28cd1d6278517ce049 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export LC_NUMERIC=en_US.utf8 | |
factor=$(echo $(xrdb -query | sed -n 's/^Xft.dpi:\t\([0-9]*\)$/\1/p')/96 | bc -l) | |
for l in ~/.mozilla/firefox/*.default*; do | |
echo "user_pref('layout.css.devPixelsPerPx', '${factor}');" > $l/user.js | |
done | |
exec /usr/bin/firefox "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment