mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
feat(stardict): start goldendict on startup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
classicsDictionaries = {
|
||||
Pape = pkgs.fetchzip {
|
||||
@@ -157,6 +157,19 @@ in
|
||||
SDCV_PAGER = "${pkgs.w3m}/bin/w3m -T text/html -dump";
|
||||
};
|
||||
|
||||
systemd.user.services.goldendict = {
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
environment = {
|
||||
DISPLAY = ":${toString config.services.xserver.display}";
|
||||
};
|
||||
serviceConfig = {
|
||||
SyslogIdentifier = "goldendict";
|
||||
ExecStart = "${pkgs.goldendict}/bin/goldendict";
|
||||
Restart = "always";
|
||||
RestartSec = "15s";
|
||||
StartLimitBurst = 0;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.me = {
|
||||
home.file.".goldendict/config".text = import <niveum/lib/goldendict-config.nix> {
|
||||
|
||||
@@ -69,9 +69,9 @@
|
||||
<hideSingleTab>0</hideSingleTab>
|
||||
<mruTabOrder>0</mruTabOrder>
|
||||
<hideMenubar>0</hideMenubar>
|
||||
<enableTrayIcon>0</enableTrayIcon>
|
||||
<startToTray>0</startToTray>
|
||||
<closeToTray>0</closeToTray>
|
||||
<enableTrayIcon>1</enableTrayIcon>
|
||||
<startToTray>1</startToTray>
|
||||
<closeToTray>1</closeToTray>
|
||||
<autoStart>0</autoStart>
|
||||
<doubleClickTranslates>1</doubleClickTranslates>
|
||||
<selectWordBySingleClick>0</selectWordBySingleClick>
|
||||
|
||||
Reference in New Issue
Block a user