-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Trigger colorchange by terminal command / bash script #126
Comments
So, i tinkered around a bit. I have a solution that kind of works, but is just a workaround that works mostly. I created a preset and chose to load this preset on any of those change options. |
Supporting preset auto-loading based on the current activity should be possible, an example of a widget that uses them is Activity Pager or Task Manager https://github.com/KDE/plasma-desktop/blob/master/applets/taskmanager/package/contents/ui/ContextMenu.qml. I already use org.kde.taskmanager to detect maximized/active window so it should be a matter of listing and linking presets to them in the presets auto-loading tab, then implement the detection and switch similar to existing ones. For future reference here's an example of what {
"enabled": true,
"maximized": "/home/luis/.config/panel-colorizer/presets/border",
"touchingWindow": "/home/luis/.config/panel-colorizer/presets/border",
"floating": "/home/luis/.config/panel-colorizer/presets/border",
"normal": "/home/luis/.config/panel-colorizer/presets/border",
"maximizedFilterByActive": true
} Maybe activities could be added like this:
|
This could be implemented by each widget exposing a D-Bus service using python, similar to what I did in https://github.com/luisbocanegra/plasma-cursor-eyes the difference would be that each panel need to be addressed in some way, possibly by creating separate service per panel unless there is a way to have a single service to talk to all the panels |
Should be enabled first from the widget settings General tab example usage: qdbus6 luisbocanegra.panel.colorizer.c337.w2346 /preset luisbocanegra.panel.colorizer.c337.w2346.preset /path/to/preset/dir refs: #126
Should be enabled first from the widget settings General tab example usage: qdbus6 luisbocanegra.panel.colorizer.c337.w2346 /preset luisbocanegra.panel.colorizer.c337.w2346.preset /path/to/preset/dir refs: #126
Should be enabled first from the widget settings General tab example usage: qdbus6 luisbocanegra.panel.colorizer.c337.w2346 /preset luisbocanegra.panel.colorizer.c337.w2346.preset /path/to/preset/dir refs: #126
Hi @k1llerk3ks, switching presets using the commandline with D-Bus has been added to dbus-service branch, can you check it out? To update:
You may need to install the following packages if they aren't installed on your system
After installing:
demo Screencast_20250111_051948.webmI thought about exposing individual configuration options (like color as you proposed) but decided not to as it would be too much work. |
Should be enabled first from the widget settings General tab example usage: qdbus6 luisbocanegra.panel.colorizer.c337.w2346 /preset luisbocanegra.panel.colorizer.c337.w2346.preset /path/to/preset/dir refs: #126
Should be enabled first from the widget settings General tab example usage: qdbus6 luisbocanegra.panel.colorizer.c337.w2346 /preset luisbocanegra.panel.colorizer.c337.w2346.preset /path/to/preset/dir refs: #126
Should be enabled first from the widget settings General tab example usage: qdbus6 luisbocanegra.panel.colorizer.c337.w2346 /preset luisbocanegra.panel.colorizer.c337.w2346.preset /path/to/preset/dir refs: #126
I have:
Is your feature request related to a problem? Please describe.
I would love to change the color of the bar, depending on the activity i am on. basically i would love to trigger this by a bash command.
Describe the solution you'd like
some command i can run or file i can edit to change the custom color, without having to open the widget everytime
Describe alternatives you've considered
trying to create an extra bar for every activity, but that does not seem to work either
Additional context
thx for this amazing piece of software :)
The text was updated successfully, but these errors were encountered: