summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbrowser11
1 files changed, 11 insertions, 0 deletions
diff --git a/browser b/browser
new file mode 100755
index 0000000..e4bb7aa
--- /dev/null
+++ b/browser
@@ -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.6 /usr/bin/env firefox
+else
+ /usr/bin/env firefox
+fi
+