From 65d4fba206470e4ae1cc5730b1ad5415c9e4eaf2 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sat, 27 Oct 2018 09:45:51 +0200 Subject: browser --- browser | 4 ++-- browser-work | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100755 browser-work diff --git a/browser b/browser index e4bb7aa..a8f8612 100755 --- a/browser +++ b/browser @@ -4,8 +4,8 @@ dpi=`xdpyinfo | grep -oP 'resolution:\s+\K\S+'` host=$(hostname) if [[ $dpi == 96x96 ]]; then - GDK_DPI_SCALE=1.6 /usr/bin/env firefox + GDK_DPI_SCALE=1.3 /usr/bin/env firefox $@ else - /usr/bin/env firefox + /usr/bin/env firefox $@ fi 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