Closed samEngineering closed 2 years ago
The config parameter does not support reading stdin. why would you think it could be used that way?
https://sw.kovidgoyal.net/kitty/invocation/
The configuration file will automatically expand the environment variables, why do you do that?
https://sw.kovidgoyal.net/kitty/conf/
Generate the configuration file from a template, check kitty --help and specify the configuration file path however you like.
The config parameter does not support reading stdin. why would you think it could be used that way? I use this method on every other config file, so I thought I would be able to with kitty. From my understanding, the envsubst command reads the file, expands all environment variables, and generates a new file with only strings in place of those variables. That new file is what I am passing to "kitty -c -". The config parameters are not actually reading stdin. I use this for polybar, bspwm, etc and it is successful.
The configuration file will automatically expand the environment variables, why do you do that? I'm not sure what you mean by this. I have had no luck with that, is there a certain way to write env vars in the config to achieve this?
Thanks.
On Fri, Mar 4, 2022 at 3:11 PM page-down @.***> wrote:
The config parameter does not support reading stdin. why would you think it could be used that way?
https://sw.kovidgoyal.net/kitty/invocation/
The configuration file will automatically expand the environment variables, why do you do that?
https://sw.kovidgoyal.net/kitty/conf/
Generate the configuration file from a template, check kitty --help and specify the configuration file path however you like.
— Reply to this email directly, view it on GitHub https://github.com/kovidgoyal/kitty/issues/4786#issuecomment-1059482387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWHXQDBPA3Y4KLDI2NQ7QHLU6JU5NANCNFSM5P6NSSBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
If I do the steps separately, it works. First, I run envsubst < ~/.config/kitty/kitty.conf > temp.conf
then kitty -c temp.conf
Works as expected. But I cannot just pipe the output of envsubst directly into kitty. It will not work
On Fri, Mar 4, 2022 at 4:06 PM Sam Lee @.***> wrote:
The config parameter does not support reading stdin. why would you think it could be used that way?
I use this method on every other config file, so I thought I would be able to with kitty. From my understanding, the envsubst command reads the file, expands all environment variables, and generates a new file with only strings in place of those variables. That new file is what I am passing to "kitty -c -". The config parameters are not actually reading stdin. I use this for polybar, bspwm, etc and it is successful.
The configuration file will automatically expand the environment variables, why do you do that?
I'm not sure what you mean by this. I have had no luck with that, is there a certain way to write env vars in the config to achieve this?
Thanks.
On Fri, Mar 4, 2022 at 3:11 PM page-down @.***> wrote:
The config parameter does not support reading stdin. why would you think it could be used that way?
https://sw.kovidgoyal.net/kitty/invocation/
The configuration file will automatically expand the environment variables, why do you do that?
https://sw.kovidgoyal.net/kitty/conf/
Generate the configuration file from a template, check kitty --help and specify the configuration file path however you like.
— Reply to this email directly, view it on GitHub https://github.com/kovidgoyal/kitty/issues/4786#issuecomment-1059482387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWHXQDBPA3Y4KLDI2NQ7QHLU6JU5NANCNFSM5P6NSSBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
You want kitty -c /dev/stdin
That did it! Thank you so much for the help ^_^
I am attempting to pass a config file to kitty with environment variables, but kitty defaults to the default config. Here is the command:
The type of variables in the config are of the form
I checked the output of
envsubst < ~/.config/kitty/kitty.conf
by only setting a couple environment variables, and the output in the terminal is a correctly formatted config file. This is what the output looks like for the command above:I'm not sure what is going on here. Any help would be appreciated, thank you ^_^
Environment details