mirror of
https://github.com/debloper/xiosk.git
synced 2026-04-26 21:35:51 +03:00
[GH-ISSUE #40] 2 configs (day / night, after sunset / sunrise, 'night mode' etc) #38
Labels
No labels
bug
bug
documentation
enhancement
enhancement
feature request
good first issue
good first issue
help wanted
invalid
priority: high
priority: low
priority: medium
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/xiosk#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andiohn on GitHub (Oct 3, 2024).
Original GitHub issue: https://github.com/debloper/xiosk/issues/40
This would be good to either 'blank' the display with a black screen or to run a different set of URLs that have dark mode?
@debloper commented on GitHub (Oct 7, 2024):
Wouldn't want PiOSK to track/analyze the internals of which websites are being used by the user (which would be necessary to record brightness/darkness to determine the mode).
Maybe set the preferred mode in the desktop manager?
Or, am I misunderstanding the issue? If so, please clarify.
@andiohn commented on GitHub (Oct 7, 2024):
I'm basically thinking of 2 'schedules'. Run these websites between these hours, run these other websites during these other hours. One of the options could be 'dark screen' or 'blank' or 'none, turn off screen' or 'just black'.
Also, I wonder if we could trigger dark / light mode of chromium on a schedule too, that way if the site supports dark mode, it would change by itself.
@andiohn commented on GitHub (Oct 7, 2024):
I'm thinking 'have a good night, see you tomorrow' kind of thing. Or 'we're closed' you know?
@debloper commented on GitHub (Oct 7, 2024):
Understood... some kind of "after hour" schedule, with alternative link(s).
Can't prioritize this, as this is a pretty niche usecase.
But, for the time being, you can:
config.jsonintoday.json&night.jsonThat should grossly do what you want it to.
Keeping it open for future consideration/implementation.
@andiohn commented on GitHub (Oct 7, 2024):
That's a cool idea, perhaps. Or even a "kill all chromium, and relaunch" thing so it doesn't have to reboot but your idea seems to be easier
@debloper commented on GitHub (Oct 8, 2024):
When the feature gets implemented (if/when it does) it will not require reboot. Just kill Chromium, swap the config file & rerun
browser.shshould do it.If you want to avoid reboot, then you can include that in the cronjob as well. I just find reboot simpler, cause less baggage of something messing with the expected result; but I understand there are times when reboot can't be afforded.