jumper149/blugon

How to check if blugon light-filter is running?

Closed this issue · 3 comments

I'm trying to make a script that turns on and off blugon, and for that I need to check whether the light-filter is applied or not. Problem is, blugon's process is already dead milisecond later is executed, so there's no process to check. There is other method to tell the filter is up? I'm using the svg backend, and started blugon with an autostart.sh script

I am guessing you are using the --setcurrent flag?
In that case every time it is applied, the value will be written to ~/.config/blugon/current.

This way you should be able to get the timestamp of the last call with:

date -r ~/.config/blugon/current

I didn't know about that flag because it's not mentioned on the README, but as soon as I get my hands on my laptop again tomorrow I'm gonna include that on the autostart script. Thx for replying

The Readme is a bit concise,
but the manpage should suffice.