From 283e2ecbdfe435c106548e6b903708a85719697d Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Thu, 12 Oct 2023 18:31:13 -0700 Subject: [PATCH] Tweak aerc and add mail status to waybar --- .config/aerc/aerc.conf | 7 ++----- .config/htop/htoprc | 4 ++-- .config/waybar/config | 7 ++++++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.config/aerc/aerc.conf b/.config/aerc/aerc.conf index 45adae7..b5a5e57 100644 --- a/.config/aerc/aerc.conf +++ b/.config/aerc/aerc.conf @@ -1,11 +1,11 @@ [ui] -index-columns = date<*,name<17,flags>4,subject<* +index-columns = date<12,name<25,flags>4,subject<* column-date = {{.DateAutoFormat .Date.Local}} column-name = {{index (.From | names) 0}} column-flags = {{.Flags | join ""}} column-subject = {{.ThreadPrefix}}{{.Subject}} timestamp-format = Jan 02 15:04 -sidebar-width = 20 +sidebar-width = 12 empty-message = (no messages) empty-dirlist = (no folders) mouse-enabled = false @@ -41,6 +41,3 @@ text/* = awk -f /usr/lib/aerc/filters/plaintext template-dirs = /usr/share/aerc/templates/ quoted-reply = quoted_reply forwards = forward_as_body - -[hooks] -mail-received = notify-send -a aerc "New email from $AERC_FROM_NAME" "$AERC_SUBJECT" diff --git a/.config/htop/htoprc b/.config/htop/htoprc index 5a5b2cc..b0a3d1d 100644 --- a/.config/htop/htoprc +++ b/.config/htop/htoprc @@ -41,14 +41,14 @@ column_meter_modes_1=1 column_meters_2=Memory LoadAverage NetworkIO DiskIO Tasks Uptime Systemd column_meter_modes_2=1 1 1 2 2 2 2 tree_view=0 -sort_key=47 +sort_key=46 tree_sort_key=47 sort_direction=-1 tree_sort_direction=-1 tree_view_always_by_pid=1 all_branches_collapsed=1 screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command -.sort_key=PERCENT_MEM +.sort_key=PERCENT_CPU .tree_sort_key=PERCENT_MEM .tree_view=0 .tree_view_always_by_pid=1 diff --git a/.config/waybar/config b/.config/waybar/config index be1d26c..53a97f6 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -7,7 +7,7 @@ "fixed-center": false, "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"], "modules-center": [], - "modules-right": ["custom/timer", "custom/nagios", "custom/task", "custom/weather", "custom/aqi", "memory", "cpu", "clock", "tray"], + "modules-right": ["custom/timer", "custom/maildir", "custom/nagios", "custom/task", "custom/weather", "custom/aqi", "memory", "cpu", "clock", "tray"], "sway/scratchpad": { "format": "{icon} {count}", "show-empty": false, @@ -59,6 +59,11 @@ "exec": "$HOME/workspace/foxstatus/modules/timer.py", "max-length": 20, "interval": 60 + }, + "custom/maildir": { + "exec": "$HOME/workspace/foxstatus/modules/maildir.py", + "max-length": 7, + "interval": 60 } }