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).
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:
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).