From 65d4fba206470e4ae1cc5730b1ad5415c9e4eaf2 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sat, 27 Oct 2018 09:45:51 +0200 Subject: browser --- browser-work | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 browser-work (limited to 'browser-work') 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 + -- cgit v1.2.3