Skip to content
Discussion options

You must be logged in to vote

you can just query the currently active processes for it?

pgrep -f "qs -c caelestia"

ps aux | grep '[q]s -c caelestia'

These commands only check the process table and do not launch any new processes

I would like to incorporate awareness of caelestia into my shell config, so I can apply the terminal colorscheme (cat ~/.local/state/caelestia/sequences.txt), and the like when it's active.

if pgrep -f "qs -c caelestia" > /dev/null
    # Caelestia is running, apply colorscheme from sequences.txt
    source ~/.local/state/caelestia/sequences.txt
    # Or execute commands to apply colorscheme
end

you can drop something like that into config.fish to tailor environment settings dynamically base…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@PowerUser64
Comment options

@PowerUser64
Comment options

@nuknes
Comment options

Answer selected by PowerUser64
@PowerUser64
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants