From 6d2f00dfe6d3279d2239cf0135dcd017d1bae46b Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Thu, 15 Aug 2024 01:50:22 -0400 Subject: project page + pomd page --- content/_index.md | 3 ++- content/projects/_index.md | 5 +++++ content/projects/pomd/index.md | 31 +++++++++++++++++++++++++++++++ content/projects/pomd/statusbar.png | Bin 0 -> 9883 bytes 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 content/projects/_index.md create mode 100644 content/projects/pomd/index.md create mode 100644 content/projects/pomd/statusbar.png (limited to 'content') diff --git a/content/_index.md b/content/_index.md index 0491e17..e8d7e25 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,10 +1,11 @@ +++ template = "index.html" +title = "hello" +++ # silas -- ~~projects~~ (coming soon, see [github](https://github.com/exvacuum) for now) +- [projects](@/projects/_index.md) - [blog](@/blog/_index.md) find me in other places diff --git a/content/projects/_index.md b/content/projects/_index.md new file mode 100644 index 0000000..8448ec5 --- /dev/null +++ b/content/projects/_index.md @@ -0,0 +1,5 @@ ++++ +title = "projects" +template = "projects.html" +page_template = "project-page.html" ++++ diff --git a/content/projects/pomd/index.md b/content/projects/pomd/index.md new file mode 100644 index 0000000..93ba0ff --- /dev/null +++ b/content/projects/pomd/index.md @@ -0,0 +1,31 @@ ++++ +title = "pomd" +description = "pomodoro timer daemon" +[taxonomies] +categories = ["utility"] +languages = ["rust"] +[extra] +finished = "november 2023" +github = ["exvacuum/pomd", "exvacuum/pomc"] +crates = ["pomd", "pomc"] ++++ + +this was a pretty simple rust project i did over the course of a couple days + +i had been wanting to experiment with d-bus on linux for a while and figured that writing a pomodoro daemon and client would be a good way to understand the basics of how d-bus interfaces work + +luckily i found the wonderful [zbus](https://crates.io/crates/zbus) crate which made everything for hooking up interface super simple + +i think the hardest thing about this project was trying to figure out how to accurately keep the time left in the timer + +as with many problems in rust the solution ended up being to find a [crate](https://crates.io/crates/pausable_clock) that implemented a "pausable clock" that worked similarly to a normal rust `std::time::Instant` + +it's pretty configurable from what i remember + +i used this program when i was using [dwm](https://dwm.suckless.org) and wanted a daemon to integrate into my statusbar + +![pomd segment in my dwm statusbar](statusbar.png) + +now i use KDE plasma which has a pretty good pomodoro applet available, maybe in the future i could make some kind of widget that communicates with the daemon + + diff --git a/content/projects/pomd/statusbar.png b/content/projects/pomd/statusbar.png new file mode 100644 index 0000000..6ca820a Binary files /dev/null and b/content/projects/pomd/statusbar.png differ -- cgit v1.2.3