feat: add nmail and fix darwin incompatibilities
This commit is contained in:
parent
3e87972f4b
commit
9d13f9cd14
4 changed files with 51 additions and 37 deletions
13
bin/nmail
Executable file
13
bin/nmail
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
set -o pipefail
|
||||
|
||||
thread_id=$(notmuch search date:1970..2021 |
|
||||
fzf --reverse --preview 'bash -c '\''
|
||||
id=$(echo "$1" | cut -d" " -f1 | cut -d":" -f2)
|
||||
notmuch show --format=raw "thread:$id" | mshow -A text/plain /dev/stdin | w3m -T text/html -dump
|
||||
'\'' _ {}' | cut -d' ' -f1 | cut -d':' -f2)
|
||||
|
||||
[[ -z $thread_id ]] && exit 0
|
||||
|
||||
notmuch show --format=raw "thread:$thread_id" |
|
||||
nvim -c 'set ft=mail' -c 'nmap q :q!<CR>' -
|
||||
1
config/sioyek/.gitignore
vendored
1
config/sioyek/.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
*.db
|
||||
auto.config
|
||||
*.txt
|
||||
prefs_user.config
|
||||
|
|
|
|||
73
home/gui.nix
73
home/gui.nix
|
|
@ -64,41 +64,6 @@
|
|||
home.packages = with pkgs; [
|
||||
qutebrowser
|
||||
];
|
||||
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"text/html" = "firefox.desktop";
|
||||
"x-scheme-handler/http" = "firefox.desktop";
|
||||
"x-scheme-handler/https" = "firefox.desktop";
|
||||
"x-scheme-handler/about" = "firefox.desktop";
|
||||
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||
};
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
show-battery-percentage = true;
|
||||
clock-format = "12h";
|
||||
};
|
||||
};
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Adwaita-dark";
|
||||
package = pkgs.gnome-themes-extra;
|
||||
};
|
||||
gtk3.extraConfig.gtk-application-prefer-dark-theme = 1;
|
||||
gtk4.extraConfig.gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
style = {
|
||||
name = "adwaita-dark";
|
||||
};
|
||||
};
|
||||
})
|
||||
|
||||
(lib.mkIf config.custom.gui.vscode.enable {
|
||||
|
|
@ -138,11 +103,45 @@
|
|||
})
|
||||
|
||||
(lib.mkIf config.custom.gui.darwin.enable {
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
home.packages = [ ];
|
||||
})
|
||||
|
||||
(lib.mkIf config.custom.gui.linux.enable {
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"text/html" = "firefox.desktop";
|
||||
"x-scheme-handler/http" = "firefox.desktop";
|
||||
"x-scheme-handler/https" = "firefox.desktop";
|
||||
"x-scheme-handler/about" = "firefox.desktop";
|
||||
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||
};
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
show-battery-percentage = true;
|
||||
clock-format = "12h";
|
||||
};
|
||||
};
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Adwaita-dark";
|
||||
package = pkgs.gnome-themes-extra;
|
||||
};
|
||||
gtk3.extraConfig.gtk-application-prefer-dark-theme = 1;
|
||||
gtk4.extraConfig.gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
style = {
|
||||
name = "adwaita-dark";
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
zotero
|
||||
zoom-us
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
nixfmt-rfc-style
|
||||
fd
|
||||
fx
|
||||
ijq
|
||||
jq
|
||||
sd
|
||||
ugrep
|
||||
|
|
|
|||
Loading…
Reference in a new issue