Skip to content

Conversation

Dynge
Copy link
Contributor

@Dynge Dynge commented Oct 19, 2025

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.

@Dynge Dynge requested a review from streetturtle as a code owner October 19, 2025 20:24
@Ryuno-Ki
Copy link
Contributor

Is there a difference to #476 ?

@Dynge
Copy link
Contributor Author

Dynge commented Oct 20, 2025

I may have forgotten that i pushed #476 :D

The difference is that this PR have an auto mode to periodically check it the bluelight setting should be changed or not based on the locations of the redshift cmd.

@Dynge
Copy link
Contributor Author

Dynge commented Oct 20, 2025

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 :)

@Ryuno-Ki
Copy link
Contributor

Do you mind editing the title to include a WIP: so it won't get merged in the „wrong” order?

@Dynge Dynge changed the title feat: refactor bluelight to use factory method WIP: feat: refactor bluelight to use factory method Oct 20, 2025
@Dynge
Copy link
Contributor Author

Dynge commented Oct 20, 2025

Do you mind editing the title to include a WIP: so it won't get merged in the „wrong” order?

done :)

@Dynge Dynge changed the title WIP: feat: refactor bluelight to use factory method feat(bluelight): add auto option to change based on location Oct 21, 2025
@Ryuno-Ki
Copy link
Contributor

Hm, is a rebase needed? I cannot see a difference to before the merge of #476 here.

@Dynge Dynge force-pushed the mdl/push-owtzuonvppno branch 2 times, most recently from efbee12 to 1fdb5c4 Compare October 21, 2025 09:26
@Dynge
Copy link
Contributor Author

Dynge commented Oct 21, 2025

Hm, is a rebase needed? I cannot see a difference to before the merge of #476 here.

Yep. Should be rebased properly now :)

@Dynge Dynge force-pushed the mdl/push-owtzuonvppno branch from 1fdb5c4 to 4324629 Compare October 21, 2025 09:33
@Ryuno-Ki
Copy link
Contributor

Luacheck is failing.

Good ol' ArchLinux wiki.

end
if opts.auto then
gears.timer({
timeout = 60,
Copy link
Contributor

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? 🤔

Copy link
Contributor Author

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)

@Dynge Dynge force-pushed the mdl/push-owtzuonvppno branch from 4324629 to 1a8c655 Compare October 21, 2025 11:25
@Dynge
Copy link
Contributor Author

Dynge commented Oct 21, 2025

Luacheck is failing.

Good ol' ArchLinux wiki.

Should be fixed now :)

@Dynge Dynge force-pushed the mdl/push-owtzuonvppno branch from 1a8c655 to 24a4b38 Compare October 21, 2025 11:29
@Ryuno-Ki
Copy link
Contributor

Ah, #479 wasn't merged. Nevermind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants