Code Monkey home page Code Monkey logo

moccafaux's People

Contributors

mzuther avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

moccafaux's Issues

MoccaFaux does not inhibit power management

Steps that I followed to produce the issue:

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 } }
   }
}

System specifications:

Operating system: Linux Mint Cinnamon 20.2.

Kernel: 5.11.0-25

Additional information:

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.