Add birdtray and more thunderbird stuff

This commit is contained in:
Natsu Kagami 2023-03-08 21:23:19 +01:00
parent d7dc35d141
commit fd85a61721
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
2 changed files with 18 additions and 2 deletions

View file

@ -2,6 +2,10 @@
with lib; with lib;
let let
cfg = config.linux.graphical; cfg = config.linux.graphical;
birdtray = pkgs.birdtray.overrideAttrs (attrs: {
cmakeFlags = [ "-DOPT_THUNDERBIRD_CMDLINE=${pkgs.thunderbird}/bin/thunderbird" ];
});
in in
{ {
imports = [ ./x11.nix ./wayland.nix ./alacritty.nix ]; imports = [ ./x11.nix ./wayland.nix ./alacritty.nix ];
@ -29,7 +33,11 @@ in
feh feh
deluge # Torrent client deluge # Torrent client
pavucontrol # PulseAudio control panel pavucontrol # PulseAudio control panel
firefox
thunderbird thunderbird
birdtray
zotero zotero
## CLI stuff ## CLI stuff
@ -53,19 +61,25 @@ in
# MIME set ups # MIME set ups
xdg.enable = true; xdg.enable = true;
xdg.mimeApps.enable = true; xdg.mimeApps.enable = true;
xdg.mimeApps.associations.added = {
"x-scheme-handler/mailto" = [ "userapp-Thunderbird-HPUL11.desktop" ];
"x-scheme-handler/mid" = [ "userapp-Thunderbird-HPUL11.desktop" ];
};
xdg.mimeApps.defaultApplications = { xdg.mimeApps.defaultApplications = {
"x-scheme-handler/http" = [ "firefox.desktop" ]; "x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ]; "x-scheme-handler/https" = [ "firefox.desktop" ];
"x-scheme-handler/ftp" = [ "firefox.desktop" ]; "x-scheme-handler/ftp" = [ "firefox.desktop" ];
"x-scheme-handler/ftps" = [ "firefox.desktop" ]; "x-scheme-handler/ftps" = [ "firefox.desktop" ];
"x-scheme-handler/mailspring" = [ "Mailspring.desktop" ]; "x-scheme-handler/mailto" = [ "userapp-Thunderbird-HPUL11.desktop" ];
"message/rfc822" = [ "userapp-Thunderbird-HPUL11.desktop" ];
"x-scheme-handler/mid" = [ "userapp-Thunderbird-HPUL11.desktop" ];
}; };
home.sessionVariables = { home.sessionVariables = {
# Set up Java font style # Set up Java font style
_JAVA_OPTIONS = "-Dawt.useSystemAAFontSettings=lcd"; _JAVA_OPTIONS = "-Dawt.useSystemAAFontSettings=lcd";
}; };
# IBus configuration # IBus configuration
# dconf.settings."desktop/ibus/general" = { # dconf.settings."desktop/ibus/general" = {
# engines-order = hm.gvariant.mkArray hm.gvariant.type.string [ "xkb:jp::jpn" "mozc-jp" "Bamboo" ]; # engines-order = hm.gvariant.mkArray hm.gvariant.type.string [ "xkb:jp::jpn" "mozc-jp" "Bamboo" ];
@ -76,3 +90,4 @@ in
# }; # };
}; };
} }

View file

@ -129,6 +129,7 @@ in
{ command = "systemctl --user restart waybar"; always = true; } { command = "systemctl --user restart waybar"; always = true; }
# Startup programs # Startup programs
{ command = "${cfg.browser}"; } { command = "${cfg.browser}"; }
{ command = "birdtray"; }
] ++ (if cfg.discord != null then [ ] ++ (if cfg.discord != null then [
{ command = "${cfg.discord}"; } { command = "${cfg.discord}"; }
] ++ lib.lists.optional ] ++ lib.lists.optional