summaryrefslogtreecommitdiff
path: root/browser-work
diff options
context:
space:
mode:
Diffstat (limited to 'browser-work')
-rwxr-xr-xbrowser-work11
1 files changed, 11 insertions, 0 deletions
diff --git a/browser-work b/browser-work
new file mode 100755
index 0000000..a858c8a
--- /dev/null
+++ b/browser-work
@@ -0,0 +1,11 @@
+#!/usr/bin/env zsh
+
+dpi=`xdpyinfo | grep -oP 'resolution:\s+\K\S+'`
+host=$(hostname)
+
+if [[ $dpi == 96x96 ]]; then
+ GDK_DPI_SCALE=1.3 /usr/bin/env chromium-browser --reset-variation-state $@
+else
+ /usr/bin/env chromium-browser $@
+fi
+