Add misc stuff
[misc.git] / bin / gtkfix
index 576b55d..911db9e 100755 (executable)
@@ -9,13 +9,18 @@ else
 fi
 
 # Minified path
-PATH=/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/bin/X11:/usr/games
-# Special case one thing: iceweasel
-if [[ "$0" =~ iceweasel ]]; then
+PATH=/opt/firefox:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/bin/X11:/usr/games
+# Special case one thing: browsers
+if [[ "$0" =~ firefox ]]; then
     _JAVA_AWT_WM_NONREPARENTING=1; export _JAVA_AWT_WM_NONREPARENTING
     AWT_TOOLKIT=MToolkit; export AWT_TOOLKIT
     wmname LG3D
     eatmydata  "$@"
 else
-    $cmd "${@:2}"
+    if [[ "$0" =~ chromium ]]; then
+        ARG="--force-device-scale-factor=1.1"
+    else
+        ARG=""
+    fi
+    $cmd ${ARG} "${@:2}"
 fi