summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbrowser20
-rwxr-xr-xbrowser-work11
2 files changed, 13 insertions, 18 deletions
diff --git a/browser b/browser
index 129f648..9f1fe8b 100755
--- a/browser
+++ b/browser
@@ -1,11 +1,12 @@
#!/usr/bin/env zsh
-if [[ $1 != "" ]]; then
- if printf $1 | grep -q "youtube.com"; then
- mpv "$1"
- exit
- fi
-fi
+# 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
@@ -13,5 +14,10 @@ else
SCALE=1.0
fi
-GDK_SCALE=$SCALE GDK_DPI_SCALE=$SCALE /usr/bin/env firefox $@
+bin=$(which firefox)
+if [[ $? -eq 1 ]]; then
+ bin=$(which firefox-bin)
+fi
+
+GDK_SCALE=$SCALE GDK_DPI_SCALE=$SCALE /usr/bin/env $bin $@
diff --git a/browser-work b/browser-work
deleted file mode 100755
index 0c0862b..0000000
--- a/browser-work
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env zsh
-
-if [[ $(dpi) -gt 120 ]]; then
- SCALE=1.4
-else
- SCALE=1.0
-fi
-
-CHROME=/opt/google/chrome/google-chrome
-GDK_DPI_SCALE=$SCALE $CHROME --disk-cache-dir=/tmp/cache --reset-variation-state --disable-sync-preferences --process-per-site --disable-reading-from-canvas --start-maximized $@
-