From a3799e2934ed8952db3baead83457f752307b02c Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 12 Jun 2018 13:57:40 +0200 Subject: browser --- browser | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 browser (limited to 'browser') 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 + -- cgit v1.2.3