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

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

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

bin=$(which firefox)
if [[ $? -eq 1 ]]; then
  bin=$(which firefox-bin)
fi

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