summaryrefslogtreecommitdiff
path: root/browser-work
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2019-09-03 22:11:10 +0200
committerPatrick Simianer <pks@pks.rocks>2019-09-03 22:11:10 +0200
commit3b531a31ca49d9d905b7fc69047a7b3136e0a9d6 (patch)
tree71de0f7a2f80c656a99de0525087d949b529b750 /browser-work
parent4c0ff8d6dce170b754831ca75e23c05aee50c303 (diff)
browser*: use dpi script
Diffstat (limited to 'browser-work')
-rwxr-xr-xbrowser-work16
1 files changed, 5 insertions, 11 deletions
diff --git a/browser-work b/browser-work
index cdff00c..452b7bd 100755
--- a/browser-work
+++ b/browser-work
@@ -1,17 +1,11 @@
#!/usr/bin/env zsh
-dpi=`xdpyinfo | grep -oP 'resolution:\s+\K\S+'`
-host=$(hostname)
-
-if [[ $(xdpyinfo | grep 'dimensions:' | strips | cut -d" " -f 5) == "1200x1920" ]]; then
- SCALE=1.0
+if [[ $(dpi) -gt 120 ]]; then
+ SCALE=1.25
else
- SCALE=1.5
+ SCALE=1.0
fi
-if [[ $dpi == 96x96 ]]; then
- GDK_DPI_SCALE=$SCALE /usr/bin/env $HOME/chrome-linux/chrome --disk-cache-dir=/tmp/cache --reset-variation-state $@
-else
- $HOME/chrome-linux/chrome --disk-cache-dir=/tmp/cache --reset-variation-state $@
-fi
+CHROME=/opt/google/chrome/google-chrome
+GDK_DPI_SCALE=$SCALE $CHROME --disk-cache-dir=/tmp/cache --reset-variation-state --disable-sync-preferences --process-per-site --disable-reading-from-canvas --start-maximized $@