From 4a25d79feef0dd6e462abfb48173da7e470127a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 15 Apr 2024 23:34:35 +0200 Subject: Replace i3blocks with swaybar --- config/i3blocks/scripts/email | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 config/i3blocks/scripts/email (limited to 'config/i3blocks/scripts/email') diff --git a/config/i3blocks/scripts/email b/config/i3blocks/scripts/email deleted file mode 100755 index 142f422..0000000 --- a/config/i3blocks/scripts/email +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash -filter=("tag:unread" "and" "not" "tag:killed") - -part=() -all=0 -for mail in email gmail elektroline fel; do - counts="$(notmuch count -- "${filter[@]}" and "tag:$mail")" - [ "$counts" = "0" ] || \ - part+=("$mail:$counts") - ((all = all + counts)) -done - -echo "${part[@]}" -if [ "$all" = "0" ]; then - echo -else - echo "mails:$all" -fi -echo "#ffff00" -- cgit v1.2.3