diff options
Diffstat (limited to 'browser-work')
-rwxr-xr-x | browser-work | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/browser-work b/browser-work index a858c8a..cdff00c 100755 --- a/browser-work +++ b/browser-work @@ -3,9 +3,15 @@ dpi=`xdpyinfo | grep -oP 'resolution:\s+\K\S+'` host=$(hostname) +if [[ $(xdpyinfo | grep 'dimensions:' | strips | cut -d" " -f 5) == "1200x1920" ]]; then + SCALE=1.0 +else + SCALE=1.5 +fi + if [[ $dpi == 96x96 ]]; then - GDK_DPI_SCALE=1.3 /usr/bin/env chromium-browser --reset-variation-state $@ + GDK_DPI_SCALE=$SCALE /usr/bin/env $HOME/chrome-linux/chrome --disk-cache-dir=/tmp/cache --reset-variation-state $@ else - /usr/bin/env chromium-browser $@ + $HOME/chrome-linux/chrome --disk-cache-dir=/tmp/cache --reset-variation-state $@ fi |