From 5034b7067a2ab22a233997aec9f93e2b911fe4d7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 19 Jan 2020 23:58:08 -0500 Subject: [PATCH] qutebrowser: add private-window shim & desktop item --- modules/browser/qutebrowser.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/browser/qutebrowser.nix b/modules/browser/qutebrowser.nix index 0f783387..be2d14e2 100644 --- a/modules/browser/qutebrowser.nix +++ b/modules/browser/qutebrowser.nix @@ -5,7 +5,22 @@ { config, lib, pkgs, ... }: { - my.packages = [ pkgs.qutebrowser ]; + my.packages = with pkgs; [ + qutebrowser + (pkgs.writeScriptBin "qutebrowser-private" '' + #!${stdenv.shell} + ${qutebrowser}/bin/qutebrowser ":open -p $@" + '') + (makeDesktopItem { + name = "qutebrowser-private"; + desktopName = "Qutebrowser (Private)"; + genericName = "Open a private Qutebrowser window"; + icon = "qutebrowser"; + exec = "${qutebrowser}/bin/qutebrowser ':open -p'"; + categories = "Network"; + }) + + ]; my.env.BROWSER = "qutebrowser"; my.home.xdg = { configFile."qutebrowser" = {