From 01cb7acefd766d4809f5ab55b3c70714dbe13abf Mon Sep 17 00:00:00 2001
From: Samir Benmendil
Date: Thu, 23 Feb 2023 20:29:17 +0000
Subject: [PATCH 01/16] zsh/motd: ellide long failed units
---
zsh/lib/motd.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zsh/lib/motd.zsh b/zsh/lib/motd.zsh
index 64c9324..c115506 100644
--- a/zsh/lib/motd.zsh
+++ b/zsh/lib/motd.zsh
@@ -28,7 +28,7 @@ fi
if (( $+commands[systemctl] )); then
if (( $(systemctl show -P NFailedUnits) )); then
- systemctl list-units -q --failed
+ systemctl --no-pager list-units -q --failed
fi
fi
--
2.49.0
From fdac29ae9ce16454869bd6954a715cd63b418db9 Mon Sep 17 00:00:00 2001
From: Samir Benmendil
Date: Thu, 2 Mar 2023 22:13:36 +0000
Subject: [PATCH 02/16] mutt: show time for todays emails
---
mutt/muttrc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/mutt/muttrc b/mutt/muttrc
index 0c86fa4..9134598 100644
--- a/mutt/muttrc
+++ b/mutt/muttrc
@@ -66,7 +66,11 @@ set markers = no
set mark_old = no # leave messages as new if unread
set status_on_top = yes # also help on bottom
set wait_key = no # don't wait for enter key
-set index_format="[%Z] %{%e/%m} %15.15L %?M?+ ?%s"
+
+set index_format="[%Z] %-6@date@ %15.15L %?M?+ ?%s"
+index-format-hook date "~d<1d" "%[%H:%M]"
+index-format-hook date "~d<1y" "%[%e/%m]"
+index-format-hook date "~A" "%[%m/%Y]"
# header
ignore *
--
2.49.0
From 5067f35853f3ab0b02cc9c15760b597eb2b78127 Mon Sep 17 00:00:00 2001
From: Samir Benmendil
Date: Sat, 11 Mar 2023 18:05:20 +0000
Subject: [PATCH 03/16] systemd: copy systemd system files into etc
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2fc6f2c..c5a8d99 100644
--- a/Makefile
+++ b/Makefile
@@ -117,8 +117,9 @@ ssh:
ln -sfT $(APATH)/ssh/config ~/.ssh/config
.PHONY: ssh
+# copy system files, do not link, it doesn't work if home is encrypted
/etc/systemd/system/%: systemd/system/%
- sudo ln -s $(APATH)/$< $@
+ sudo cp $(APATH)/$< $@
systemd_system_units := $(patsubst %,/etc/%,$(wildcard systemd/system/*))
systemd: $(XDG_CONFIG_HOME) $(systemd_system_units)
--
2.49.0
From 221edfc351485b67f944e21df86078144220aae7 Mon Sep 17 00:00:00 2001
From: Samir Benmendil
Date: Sat, 11 Mar 2023 18:21:18 +0000
Subject: [PATCH 04/16] systemd: restart checkupdates on failure
---
systemd/system/checkupdates.service | 2 ++
1 file changed, 2 insertions(+)
diff --git a/systemd/system/checkupdates.service b/systemd/system/checkupdates.service
index 5cabb6a..4980870 100644
--- a/systemd/system/checkupdates.service
+++ b/systemd/system/checkupdates.service
@@ -7,3 +7,5 @@ Type=oneshot
ExecStart=/usr/bin/checkupdates -d
# checkupdates returns 2 when there are no updates
SuccessExitStatus=2
+Restart=on-failure
+RestartSec=5min
--
2.49.0
From 830ef01248ce26f54f482e3dd6585fc217caf756 Mon Sep 17 00:00:00 2001
From: Samir Benmendil
Date: Sat, 11 Mar 2023 18:07:02 +0000
Subject: [PATCH 05/16] mutt: make dmarc xsl more plaintext friendly
It still requires parsing through w3m but it quite a bit more readable.
---
mutt/dmarc.xsl | 107 ++++++++++++++++++++++++++++++++-----------------
mutt/mailcap | 2 +-
2 files changed, 71 insertions(+), 38 deletions(-)
diff --git a/mutt/dmarc.xsl b/mutt/dmarc.xsl
index b942425..b6f693f 100644
--- a/mutt/dmarc.xsl
+++ b/mutt/dmarc.xsl
@@ -36,12 +36,15 @@
margin: 1em;
padding: 4pt;
background-color: #ffeeaa;
- border: 3pt solid #776633;
+ border: 3pt solid #776633;
+ }
+ table.report_metadata th {
+ text-align: right;
}
td, th {
margin: 2pt;
padding: 2pt;
- border: 1pt solid #776633;
+ border: 1pt solid #776633;
}
.pass {
background-color: #11bb00;
@@ -77,9 +80,10 @@
-
-
-
+
@@ -87,15 +91,13 @@
Relaying IP
- message count
+ msg count
|
- reason and disposition
+ reason/dispo
|
- From header
-
- (opt. envelope)
+ From: hdr
|
SPF
@@ -148,21 +150,42 @@
|