-
Notifications
You must be signed in to change notification settings - Fork 182
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
Can't use the config variable when running the script using i3-msg -q exec myscript #470
Comments
I am no expert, but I do think As a consequence, the environment is different and you have no access to the variables specified my If this is true, you should update your script to pass arguments via the command line Or maybe, a simpler solution However, this is a workaround to solve your issue. But I think the clean solution is certainly elsewhere. |
It makes sense I think. |
Could you post here the solution that has solved your issue described above; to satisfy my curiosity and for the users that would read this later. Also, you may close the issue, unless you have something else to add or ask |
for more details and usecase, please refer to: |
I have created an easy-to-take screenshot script (https://github.com/shivankgarg98/i3blocks-contrib/tree/master/screenshot) which saves the screenshot in clipboard and also pop a notifcation using dunst to allow user to save in a file (when clicked on notification).
As noted in #354, there will be a problem until current instance of dunstify (notification) is closed. To overcome this, I'm using command=i3-msg -q exec myscript. It solve my problem but it's not reading the variable set in config (like IS_SAVE=true or SAVE_DIR=).
Is this expected? how to overcome this.
The text was updated successfully, but these errors were encountered: