-
-
Notifications
You must be signed in to change notification settings - Fork 296
feat(bluelight): add auto option to change based on location #483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Is there a difference to #476 ? |
I may have forgotten that i pushed #476 :D The difference is that this PR have an |
But this PR builds on top of the other, so this should really point to the other branch. If you merge the other one first it should become apparant what this one does :) |
Do you mind editing the title to include a WIP: so it won't get merged in the „wrong” order? |
done :) |
Hm, is a rebase needed? I cannot see a difference to before the merge of #476 here. |
efbee12
to
1fdb5c4
Compare
Yep. Should be rebased properly now :) |
1fdb5c4
to
4324629
Compare
Luacheck is failing. Good ol' ArchLinux wiki. |
end | ||
if opts.auto then | ||
gears.timer({ | ||
timeout = 60, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's in seconds? Or minutes?
Do we really need to check every minute here? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its seconds, and no - We do not. We could check every 5 minute? I dont really have a good feel for what would be preferable, however I think it does not really matter. Executing the process every minute or 5 minutes is not gonna matter performance wise (i think)
4324629
to
1a8c655
Compare
Should be fixed now :) |
1a8c655
to
24a4b38
Compare
Ah, #479 wasn't merged. Nevermind. |
Updated the bluelight widget to use a factory method such that it is easier to supply arguments to the widget.
Furthermore Ive added an option
opts.auto
to select if the bluelight filter should automatically start or not.