Reorganize Fedora dotfiles and remove legacy profile
This commit is contained in:
@@ -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"
|
||||
```
|
||||
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user