Skip to content
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

Feature request: cmd-silent #1152

Closed
DarkKronicle opened this issue Jul 24, 2024 · 1 comment · Fixed by #1154
Closed

Feature request: cmd-silent #1152

DarkKronicle opened this issue Jul 24, 2024 · 1 comment · Fixed by #1154
Labels
enhancement New feature or request

Comments

@DarkKronicle
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I'm using kanata to navigate my window manager with cmd. This works really well because I don't have to create keybinds within my window manager configuration and then have kanata emulate those.

The only slight annoyance is that this is running in systemd and all cmd outputs are logged. I use these keybindings a lot so it has added thousands of lines to my journal.

One sample log entry:

Jul 23 16:49:10 tabula kanata[4827]: 16:49:10.3573 [INFO] Running cmd: Program: swaymsg, Arguments: focus down                            
Jul 23 16:49:10 tabula kanata[4827]: 16:49:10.3585 [INFO] Successfully ran cmd: Program: swaymsg, Arguments: focus down                   
Jul 23 16:49:10 tabula kanata[4827]: stdout:                                                                                              
Jul 23 16:49:10 tabula kanata[4827]: [                                                                                                    
Jul 23 16:49:10 tabula kanata[4827]:   {                                                                                                  
Jul 23 16:49:10 tabula kanata[4827]:     "success": true                                                                                  
Jul 23 16:49:10 tabula kanata[4827]:   }                                                                                                  
Jul 23 16:49:10 tabula kanata[4827]: ]                                                                                                    
Jul 23 16:49:10 tabula kanata[4827]: stderr:  

Describe the solution you'd like.

I'd like there to be another verb called something like cmd-silent, which doesn't log anything. I think introducing another verb instead of a configuration option would be best because some commands it would still be useful to see what commands were taken/if there were any errors. This way you could choose whether or not you see logs.

Describe alternatives you've considered.

I can eat stdout in the command, but only shaves off a few lines (there's still 4). Doing a ton of these just leads to a lot of bloat in the log.

I can also turn off logging from within systemd, but I would prefer not too to see some other information of kanata.

Additional context

If this is approved, I can try adding creating a PR for it (although if done in the way described I don't think it will be that hard).

@DarkKronicle DarkKronicle added the enhancement New feature or request label Jul 24, 2024
@jtroo
Copy link
Owner

jtroo commented Jul 24, 2024

Sounds like a reasonable feature to me 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants