Skip to content

Instantly share code, notes, and snippets.

@Vineg
Vineg / suspend_inhibitor.cpp
Last active April 10, 2024 20:10
Cross platform tool to prevent operating system from sleep after long inactive time (usually named Inhibitor). Requires QT DBus library for communication on Linux OS
#include "suspend_inhibitor.h"
#ifdef __APPLE__
#include <IOKit/pwr_mgt/IOPMLib.h>
#elif defined(_WIN32)
#include <Windows.h>
#elif defined(__linux__)
#include <QtDBus/QtDBus>
#endif
@Vineg
Vineg / README.md
Created March 1, 2021 12:04 — forked from tmcw/README.md
Jenks Natural Breaks with simple-statistics and d3