Reorganize Fedora dotfiles and remove legacy profile

This commit is contained in:
Mikhail Kilin
2026-07-25 12:38:39 +03:00
parent a601a53660
commit 6cb1d53a70
75 changed files with 2146 additions and 3974 deletions

View File

@@ -1,18 +0,0 @@
# mail-counter
Waybar custom mail module for Thunderbird. It reads Thunderbird's
`global-messages-db.sqlite` and prints JSON for Waybar.
## Build On Bazzite
```bash
cd ~/dotfiles/bazzite/mail-counter
cargo build --release
install -m 755 target/release/mail-counter ~/.config/waybar/scripts/mail
```
Waybar config should call the compiled binary:
```jsonc
"exec": "~/.config/waybar/scripts/mail"
```

View File

@@ -70,7 +70,7 @@ fn unread_count(db_path: &Path) -> i64 {
.unwrap_or_default()
}
fn waybar_json(count: i64) -> Value {
fn mail_json(count: i64) -> Value {
if count > 0 {
json!({
"text": format!("{MAIL_ICON} {count}"),
@@ -109,5 +109,5 @@ fn main() {
return;
}
println!("{}", waybar_json(unread_count(&db_path)));
println!("{}", mail_json(unread_count(&db_path)));
}