mzuther / moccafaux Goto Github PK
View Code? Open in Web Editor NEWAdapt power management to changes in the environment.
License: Eclipse Public License 2.0
Adapt power management to changes in the environment.
License: Eclipse Public License 2.0
1- I opened moccafaux-1.4.1.jar
using OpenJDK Java 11 Runtime
and the tray-icon of the application appeared.
2- I opened Clementine and waited for 60 seconds, and the icon of the application changed to green (dpms -> Active, sleep -> idle
)
3- I waited 5 minutes and the screen turned off, and my laptop went to sleep after 10 minutes.
config.edn
{
:settings {
:add-traybar-icon true
:probing-interval 60
}
:tasks {
:sleep {
:active { :message "allow computer to save energy"
:command "xautolock -time 10 -locker 'systemctl suspend' -detectsleep"
:fork true }
:idle { :message "keep computer awake"
:command "xautolock -exit"
:fork false } }
:dpms {
:active { :message "allow screen to save energy"
:command "xset dpms 0 600 900"
:fork false }
:idle { :message "keep screen awake"
:command "xset -dpms"
:fork false } }
}
:watches {
:important-processes {
:enabled true
:command "pgrep -af '^dpkg\\b|^pacman\\b|^dar\\s|\\bgparted\\b|^k3b\\b|^/\\S*rsync\\b|^ssh\\s|^sshd:.*\\[priv\\]|^unison\\S*|\\bgsmartcontrol\\b|^ffmpeg\\s'"
:tasks { :sleep true } }
:audio {
:enabled true
:command "pgrep -l '^(clementine|deadbeef\\S+|quodlibet)$'"
:tasks { :sleep true } }
:pulseaudio {
:enabled true
:command "pactl list short sinks | grep -E '\\bRUNNING$'"
:tasks { :sleep true } }
:video {
:enabled true
:command "pgrep -l '^(celluloid|hypnotix|skypeforlinux|teams|vlc|zoom)$'"
:tasks { :dpms true
:sleep true } }
:zfs-scrub {
:enabled true
:command "zpool status | grep -E '(resilver|scrub) in progress'"
:tasks { :sleep true } }
}
}
Operating system: Linux Mint Cinnamon 20.2.
Kernel: 5.11.0-25
I do not use PulseAudio
, I use Pipewire
instead, which I do not know if it is supported or not. Also, I use EasyEffects which is the new successor of PulseEffects.
Compilation fails after lein clean && lein uberjar
:
Compiling de.mzuther.moccafaux.core
Reflection warning, clj_systemtray/core.clj:97:5 - call to method addActionListener can't be resolved (target class is unknown).
Reflection warning, clj_systemtray/core.clj:119:28 - call to method add can't be resolved (target class is unknown).
Reflection warning, clj_systemtray/core.clj:123:23 - call to method add can't be resolved (target class is unknown).
Reflection warning, clj_systemtray/core.clj:157:26 - reference to field addSeparator can't be resolved.
Reflection warning, clj_systemtray/core.clj:181:30 - call to method getImage on java.awt.Toolkit can't be resolved (argument types: unknown).
Reflection warning, clj_systemtray/core.clj:211:5 - call to method displayMessage can't be resolved (target class is unknown).
Reflection warning, popen.clj:14:12 - call to java.lang.ProcessBuilder ctor can't be resolved.
Reflection warning, popen.clj:33:5 - reference to field exitValue can't be resolved.
java.io.FileNotFoundException: /home/kay/.config/moccafaux/config.edn (Datei oder Verzeichnis nicht gefunden)
Compilation failed: Subprocess failed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.