citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

browser (406B)


      1 #!/usr/bin/env bash
      2 #exec chrome "$@"
      3 
      4 set -e
      5 
      6 #BROWSER=chromium
      7 BROWSER=qutebrowser
      8 #BROWSER_ARGS="--enable-webengine-inspector"
      9 export EDITOR=/home/jb55/bin/edit-gui
     10 
     11 kill_browser () {
     12   #exec pkill qutebrowser
     13   pkill --oldest "$BROWSER"
     14   exit 0
     15 }
     16 
     17 if [ "$1" = "kill" ]; then
     18     kill_browser
     19 fi
     20 
     21 "$BROWSER" "$BROWSER_ARGS" "$@"
     22 #qutebrowser --enable-webengine-inspector "$@"
     23 exec wmctrl -a "$BROWSER"