-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Support displaying custom dynamic text #234
Comments
This won't work as expected because i3lock is an static program. All the params you pass to i3lock will remain the same through all its lifetime. Currently, i3lock does not have any kind of "API" to communicate to it, neither a way to load data dinamically. A simple solution to this could be to add an option to run a script at intervals. The downside is that every change you make won't be instantaneous, and i3lock will make unnecessary executions that aren't needed. Therefore, I think creating a kind of API would be great. |
You can always have a script to start a new instance of i3lock periodically, check that it's running, and terminate the original one. An API for showing custom things on a lock screen is too much IMO. |
I like this solution, thanks! |
Glad I could help! |
Actually @r4t1o my solution won't work because the new instance won't be able to grab since the old one already grabs it. Edit: We're discussing a solution to this on Discord, here's a link to the server if you wanna join us: https://discord.gg/FzVPghyDt2 |
I have tried it and it did not work as expected. |
This issue is a....
Current Behavior
Hello, I have written a small script to display the current playing music through mpc.
The current way I'm displaying the music is by adding that to the greeter text.
However, with this method when the music changes and the lock is still active it does not change the music text.
Expected Behavior
Code
This script is placed in /usr/bin and When this script is run through greeter text like this ( --greeter-text="$(musicstat)" ) it should display the music and the current music and also when the music changes the greeter text should change as well.
When this script is run through, watch -n1 musicstat it display the current music time as well as changing what song and state it currently is I would like to achive that with greeter text or any other means possible.
My question is this something I can do without modifying the sourcecode?
Reproduction Instructions
Environment
Output of
i3lock --version
:Where'd you get i3lock-color from?
The text was updated successfully, but these errors were encountered: