Variables with calc function #1667
-
Hi guys! Just wondering if there is any way I can use variables defined within rasi files as a part of calc function.. I found older request regarding the same subject, and it mentions environment variables, but it's not clear about the way it should be used.. Please let me know if you know anything about this, |
Beta Was this translation helpful? Give feedback.
Answered by
DaveDavenport
Jul 31, 2022
Replies: 1 comment 1 reply
-
You cannot use variables in calc function (as stated in the issue). This might work with env variable: MYWIDTH=1000 rofi -theme-str 'window { width: calc( ${MYWIDTH} - 20 ); }' -show drun |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
s0la
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You cannot use variables in calc function (as stated in the issue).
This might work with env variable:
MYWIDTH=1000 rofi -theme-str 'window { width: calc( ${MYWIDTH} - 20 ); }' -show drun