Coder Social home page Coder Social logo

kriansa / wmcompanion Goto Github PK

View Code? Open in Web Editor NEW
39.0 4.0 3.0 214 KB

Desktop event listener for minimal window manager users

License: Apache License 2.0

Python 96.05% Lua 3.95%
herbstluftwm i3-config i3wm qtile tiling-window-manager dwm xmonad bspwm polybar

wmcompanion's People

Contributors

kriansa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wmcompanion's Issues

more dbus

Hi, so I was thinking about something, to continue the conversation from reddit where you were interested in feedback. How about this framework have two modular components, one that publishes events on dbus and the other that handles the actions part, here would be a rough workflow:

M1:

  1. collect all events from udev etc (also dbus itself?)

  2. republish them on your own bus

M2:

  1. Python API to directly subscribe to your events. (Or to dbus events)

  2. affect stuff like polybar , notify etc

You're already doing everything except (2) of M1. I think having a (2) would appeal a lot to what is already the target audience, people who want to minimize stuff that runs on their computer.

Eg. I use a heavily modified fork of qmpanel where I have added some dbus listening and would write my own cpp to do stuff by listening to your bus.

Dbus would allow me to do things in- process and in general is a more standard approach imho.

Monitor event?

Thanks for this module. Is there an event that can detect when a monitor gets attached or detched?

FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/power_supply/BAT0/capacity' when trying to initialize "wmcompanion.events.power.PowerActions"

Greetings, so, I have this snippet of code here:

from wmcompanion.events.power import PowerActions

when I run it, it seems that WMCompanion runs into an error whilst trying to connect with the "/sys/class/power_supply/BAT0/capacity" file, necessary for PowerActions to work. This is because many systems actually store this file at "/sys/class/power_supply/BAT1/capacity" or "/sys/class/power_supply/BAT2/capacity" and so on and so forth. This same issue occured in bpytop and was fixed via a merge. I can attempt to fix this via a merge as well if needed. (this is the fix in bpytop -> lwhsu/bpytop@6643dc2).

Regards,
Trayambak.

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.