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

if [[ $1 != "" ]]; then
  if printf $1 | grep -q "youtube.com"; then
    mpv "$1"
    exit
  fi
fi

if [[ $(dpi) -gt 120 ]]; then
  SCALE=1.25
else
  SCALE=1.0
fi

GDK_SCALE=$SCALE GDK_DPI_SCALE=$SCALE /usr/bin/env firefox $@