Skip to content

How to launch the script of a module only when a certain command is entered #3116

Closed Answered by patrick96
Aeldit asked this question in Q&A
Discussion options

You must be logged in to vote

Wouldn't that mean that the script is always running ?

Yes. The script would manage the entire lifecycle here and would just be idly running listen for a signal (the script module does support with tail = true)


Now that I think about it though, if you don't need to run at an interval at all and only on a signal, you could use the ipc module. For that module, you can use polybar-msg to trigger commands on the module.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@patrick96
Comment options

Answer selected by Aeldit
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants