kriansa / wmcompanion Goto Github PK
View Code? Open in Web Editor NEWDesktop event listener for minimal window manager users
License: Apache License 2.0
Desktop event listener for minimal window manager users
License: Apache License 2.0
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:
collect all events from udev etc (also dbus itself?)
republish them on your own bus
M2:
Python API to directly subscribe to your events. (Or to dbus events)
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.
Thanks for this module. Is there an event that can detect when a monitor gets attached or detched?
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.
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.