Skip to content

How to add a configurable log destination for executions of scripts? #296

Discussion options

You must be logged in to vote

You can do it like this: just set the script up this way in sketchybar, i.e. to append to the output:

sketchybar --set <name> script="$PLUGIN_DIR/script.sh >> $HOME/output.txt"

or to reset the output:

sketchybar --set <name> script="$PLUGIN_DIR/script.sh > $HOME/output.txt"

This will log the outputs of the script execution to a file.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FelixKratz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #277 on December 02, 2022 09:55.