diff options
| -rwxr-xr-x | mut/bin/notmuch-hook | 6 | ||||
| -rwxr-xr-x | mut/bin/sb-mailbox | 4 | ||||
| -rw-r--r-- | profiles/core/configuration.nix | 8 | ||||
| -rw-r--r-- | profiles/core/neovim.nix | 5 | ||||
| -rw-r--r-- | profiles/station/packages.nix | 40 |
5 files changed, 28 insertions, 35 deletions
diff --git a/mut/bin/notmuch-hook b/mut/bin/notmuch-hook index 0e49783..147559e 100755 --- a/mut/bin/notmuch-hook +++ b/mut/bin/notmuch-hook @@ -4,7 +4,8 @@ notmuch tag -new +unread +jobs -- 'tag:new and (from:jobs-listings* or from:jobs notmuch tag -new +unread +houses -- 'tag:new and (from:"'$MAKELAAR'" or thread:{'$MAKELAAR'})' notmuch tag -new +unread +dev -- 'tag:new and (from:/.*github.com/ or thread:{from:/.*github.com/})' -notmuch tag +inbox +unread -- tag:new +# New needs to be removed, otherwise it will re add inbox unread +notmuch tag -new +inbox +unread -- tag:new # Gmail + mbsync = a lot of duplicates due to the archive notmuch tag -new -inbox +archive -- 'folder:/Archive/ -folder:/Inbox/ -folder:/\[Gmail\]/ -folder:/FarDrafts/ -folder:/Important/ -folder:/Sent/' @@ -19,3 +20,6 @@ notmuch tag --remove-all +spam -- folder:/Spam/ or folder:/Junk/ # Remove files of messages that were tagged but still have files left behind in the mailbox, should be fine since gmail already keeps a duplicate in the Archive so the message will not be deleted only one file of the message # TODO(): make this work with non gmail emails too # notmuch search --output=files -- 'folder:/Inbox/ -tag:inbox' | grep Inbox | xargs >/dev/null 2>&1 rm + +# update dwmblocks mail module +pkill -RTMIN+12 dwmblocks diff --git a/mut/bin/sb-mailbox b/mut/bin/sb-mailbox index ca77f5c..8fd2d5b 100755 --- a/mut/bin/sb-mailbox +++ b/mut/bin/sb-mailbox @@ -13,7 +13,9 @@ case $BLOCK_BUTTON in 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac -unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)" +# NOTE(): can't figure out why this one doesn't work, emails don't end up in new folder always +# unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)" +unread="$(notmuch search tag:inbox and tag:unread | wc -l 2>/dev/null)" pidof mbsync >/dev/null 2>&1 && icon="🔃" diff --git a/profiles/core/configuration.nix b/profiles/core/configuration.nix index 1fcb139..65c3adb 100644 --- a/profiles/core/configuration.nix +++ b/profiles/core/configuration.nix @@ -36,12 +36,18 @@ vim wget git + subversion + htop jq yq-go curl + fd + lf + ripgrep + parallel pinentry-curses gnused - htop + gnutls pciutils dnsutils iputils diff --git a/profiles/core/neovim.nix b/profiles/core/neovim.nix index f546e7a..eaebc2d 100644 --- a/profiles/core/neovim.nix +++ b/profiles/core/neovim.nix @@ -25,11 +25,6 @@ }; }; - home.packages = with pkgs; [ - neovide - ripgrep - ]; - programs.neovim = { enable = true; package = pkgs.neovim-unwrapped; diff --git a/profiles/station/packages.nix b/profiles/station/packages.nix index deea797..9dd6f20 100644 --- a/profiles/station/packages.nix +++ b/profiles/station/packages.nix @@ -3,14 +3,13 @@ config, pkgs, ... -}: let - core-packages = with pkgs; - [ +}: { + hm = { + home.packages = with pkgs; [ krew dasel initool python311Packages.editorconfig - gnutls gcc pkgsi686Linux.glibc gnumake @@ -20,7 +19,6 @@ calcurse profanity file - lf ueberzug mypaint lynx @@ -30,39 +28,27 @@ k9s powershell azure-cli - subversion - ripgrep inotify-tools alejandra statix fzf github-cli lazygit - fd argocd - parallel bc sxiv nushell sent + (nerdfonts.override {fonts = ["FiraCode"];}) + noto-fonts + noto-fonts-emoji + docker + k9s + dmenu + librewolf + firefox-wayland + xclip + libreoffice ]; - mike-extra-packages = with pkgs; [ - (nerdfonts.override {fonts = ["FiraCode"];}) - noto-fonts - noto-fonts-emoji - docker - k9s - dmenu - librewolf - firefox-wayland - xclip - libreoffice - ]; -in { - hm = { - home.packages = - core-packages - ++ - mike-extra-packages; }; } |
