You've been working the dogwatch for a few weeks now. You just need a power nap to get you through the rest of the night. Your manager has heen working remote for the past two years but he could show back up any day now. If only there was a way to keep my computer from sleeping with a single command so that you can take a quick nap.
- Stay awake forever by running
dogwatch
- Stay awake for a specific amount of time (minutes)
dogwatch --time 1
This could be installed via a copr, otherwise head to the building section for how to build.
sudo dnf copr enable egg95/dogwatch
sudo dnf install dogwatch
- If you are using a distro that uses RPMs you can download the RPM in the releases tab and install it with
rpm -ivh
git clone https://github.com/Radical-Egg/dogwatch
cd dogwatch
- use
cargo run
orcargo build
- Self Driving Screen Saver
- Fully Autonomous Self Driving Screen Saver (please don't try this at home)
- Internet wide ad blocking
- Basic calculator functionality
This is my frist project in Rust. Rust seems pretty cool. I wanted to learn about Dbus and this seemed like a cool way to do that. I found some good resources for anyone who is looking into Dbus.
- dbus-sample: This link is awesome and has a really good high level overview of dbus as well as a ton of useful links. There is also a sample cpp program on how to make a connection and introspect.
- dbus-rs: D-Bus bindings for rust
- dbus tutorial: As you can tell by the CSS used on this webpage they would like to keep it strictly business
- Qdbusviewer: I didn't find out about this until after I was done but this is a great way to mess around with Dbus before you start programming something. Here is the flathub link to download this jawn - ----- flathub link
I added functionality for this to work on Windows as well. I am using Windows a bit more and found it useful. It doesn't use dbus and instead uses SetThreadExecutionState to prevent sleepiness