summaryrefslogtreecommitdiff
path: root/browser-work
blob: cdff00c5efb952eed783811694d06794f106d2ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env zsh

dpi=`xdpyinfo  | grep -oP 'resolution:\s+\K\S+'`
host=$(hostname)

if [[ $(xdpyinfo  | grep 'dimensions:' | strips | cut -d" " -f 5) == "1200x1920" ]]; then
  SCALE=1.0
else
  SCALE=1.5
fi

if [[ $dpi == 96x96 ]]; then
  GDK_DPI_SCALE=$SCALE /usr/bin/env $HOME/chrome-linux/chrome --disk-cache-dir=/tmp/cache --reset-variation-state $@
else
   $HOME/chrome-linux/chrome --disk-cache-dir=/tmp/cache --reset-variation-state $@
fi