mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
nix: Add goldendict-ng
This commit is contained in:
parent
a9d8bcb500
commit
5f1729caf4
6 changed files with 126 additions and 86 deletions
|
|
@ -40,6 +40,7 @@
|
|||
fish
|
||||
zoxide
|
||||
wakatime-cli
|
||||
sdcv
|
||||
# Langs
|
||||
# lua luajit
|
||||
lua51Packages.luarocks
|
||||
|
|
@ -51,5 +52,6 @@
|
|||
nushell
|
||||
powershell
|
||||
powershell-editor-services
|
||||
package-version-server
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
kitty
|
||||
ghostty
|
||||
alacritty
|
||||
|
|
@ -12,10 +12,13 @@
|
|||
pcloud
|
||||
telegram-desktop
|
||||
steam
|
||||
# Use Wayland for Jetbrains
|
||||
(jetbrains.idea-ultimate.override {
|
||||
vmopts = ''-Dawt.toolkit.name=WLToolkit'';})
|
||||
vmopts = ''-Dawt.toolkit.name=WLToolkit'';
|
||||
})
|
||||
(jetbrains.rider.override {
|
||||
vmopts = ''-Dawt.toolkit.name=WLToolkit'';})
|
||||
vmopts = ''-Dawt.toolkit.name=WLToolkit'';
|
||||
})
|
||||
warp-terminal
|
||||
# clash-verge-rev
|
||||
haruna
|
||||
|
|
@ -36,5 +39,36 @@
|
|||
protonmail-bridge-gui
|
||||
mpv
|
||||
neovim-qt
|
||||
goldendict-ng
|
||||
];
|
||||
|
||||
xdg.desktopEntries = {
|
||||
# Force wayland when running goldendict-ng
|
||||
"io.github.xiaoyifang.goldendict_ng" = {
|
||||
name = "GoldenDict-ng";
|
||||
genericName = "Multiformat Dictionary";
|
||||
comment = "A feature-rich dictionary lookup program";
|
||||
icon = "goldendict";
|
||||
type = "Application";
|
||||
terminal = false;
|
||||
categories = [
|
||||
"Office"
|
||||
"Dictionary"
|
||||
"Education"
|
||||
"Qt"
|
||||
];
|
||||
mimeType = [
|
||||
"x-scheme-handler/goldendict"
|
||||
"x-scheme-handler/dict"
|
||||
];
|
||||
exec = "env GOLDENDICT_FORCE_WAYLAND=1 ${pkgs.goldendict-ng}/bin/goldendict %u";
|
||||
settings = {
|
||||
"GenericName[zh_CN]" = "多格式字典";
|
||||
"Comment[zh_CN]" = "多功能字典查询软件";
|
||||
"Keywords" = "dict;dictionary";
|
||||
"Keywords[zh_CN]" = "dict;dictionary;字典;";
|
||||
"StartupWMClass" = "GoldenDict-ng";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
{ pkgs }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
sdcv
|
||||
];
|
||||
home.sessionVariables = {
|
||||
STARDICT_DATA_DIR = "$HOME/.local/share/stardict/dic";
|
||||
};
|
||||
}
|
||||
|
|
@ -35,7 +35,6 @@ in
|
|||
./programs/firefox.nix
|
||||
./programs/distrobox.nix
|
||||
./programs/mime.nix
|
||||
./programs/sdcv.nix
|
||||
./programs/zed-editor.nix
|
||||
# ./programs/floorp.nix
|
||||
../../modules/home/gnome-keyrings.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue