Closed develperbayman closed 8 months ago
How much memory does it use? I use a program called ps_mem.py to get a listing. I'm sure there are other ways to check.
Not to discourage creativity, but there is a package called volumeicon that takes 17 mb of memory to run that I think does this.
Another way to accomplish it would be with a YAD notification icon which would take about 11 mb of memory.
A third way of doing it that needs no memory except when its being used is too add an icon to the toolbar to call a program like yours, a YAD window, or other dialog program.
A fourth way to accomplish it on systems with multimedia keys is to program those keys to just work, and if you want the result to be displayed, a YAD window could be displayed.
I still wish IceWM would include an option for multiple generic tray icons, similar to the built-in Network monitor icons, my main reason for it to be included is that if it was built-in, it would use dramatically less memory than separate addons.
27.7 mb ram i know i can trim that by half ....but i really liked the way it looks using qt5
oddly enough i didnt think to try hardware keys ...so i did and they work just dont provide and feedback on the volume level ....maybe a pointless exercise ....since i like to reinvent the wheel next ill try my had at a wallpaper switcher lol
If you look at the keys
file you might find it is running a program when you press the up, down, or mute keys. You could change what it runs to instead call a program like yours with a parameter telling it what action to take and displaying the result. It could run until you closed it or maybe exit on certain actions or a timeout, thus freeing up the memory at that point. I guess my point is that IceWM is a very light window manager , which can and is used by many older, low resource machines, and if you want them able to run your program, it needs to also conserve resources as well.
Don't forget to show the final version of the .py file too; I may have a try to port it into ruby (or an equivalent) one day, if it works. Extending icewm via "scripting" languages would be pretty great.
honestly ill prob not do any more with this for now i actually changed operating system for AI purpose however ...i do i have plans of a all python linux based operating system built for clustering featuring AI named "computer" ill probably implement this there
so im trying to use a custom volume control written in python im using debian running icewm works great so about a day ago i decided i needed something better for volume control so i rolled a python script i like it so i wrote a installer script for it but i cant seem to get the script to run the way i want the goal is to
1.create a menu entry
volume-install.py:
volume.py:
im thinking about calling it pyvolume?