qutebrowser: add private-window shim & desktop item

This commit is contained in:
Henrik Lissner 2020-01-19 23:58:08 -05:00
parent be7c135314
commit 5034b7067a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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" = {