Skip to content

Conditionals in lfrc? #1404

Answered by michaelferon
Lassebq asked this question in Q&A
Aug 31, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

I think the following would work in your lfrc:

&{{
    if [[ "$TERM" = foot || -n "$KONSOLE_VERSION" ]]; then
        command lf -remote "send $id :set sixel"
    fi
}}

By not attaching the command to a cmd statement, it will run automatically at startup.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@michaelferon
Comment options

@Lassebq
Comment options

Answer selected by Lassebq
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