focus more on qutebrowser
This commit is contained in:
parent
783790a2e9
commit
c49fa057cc
4 changed files with 28 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
{ config, pkgs, lib, font, ... }:
|
||||
let inherit (pkgs.uservars) key theme color accent font;
|
||||
let inherit (pkgs.uservars) key theme color accent font browser;
|
||||
in {
|
||||
config = {
|
||||
programs.qutebrowser = {
|
||||
|
@ -227,6 +227,21 @@ in {
|
|||
# config.source("config/config.py")
|
||||
# '';
|
||||
};
|
||||
systemd.user.services = lib.mkIf (browser == "qutebrowser") {
|
||||
qutebrowser = {
|
||||
Unit = {
|
||||
Description = "Qutebrowser Web client";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStartPre = "/usr/bin/env sleep 10s";
|
||||
ExecStart = "${pkgs.qutebrowser}/bin/qutebrowser";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
Install = { WantedBy = [ "sway-session.target" ]; };
|
||||
};
|
||||
};
|
||||
home.file = {
|
||||
# For some stupid reason qutebrowser crashes if this dir does not exist
|
||||
".local/share/qutebrowser/greasemonkey/.keep".text = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue