empee584 / night-mode-daemon Goto Github PK
View Code? Open in Web Editor NEWSimple automatic night-mode (blue light / red screen filter) for X11 with settings app (pyqt5)
License: Creative Commons Zero v1.0 Universal
Simple automatic night-mode (blue light / red screen filter) for X11 with settings app (pyqt5)
License: Creative Commons Zero v1.0 Universal
Python 3.10.7
Kernel: 5.19.0-2-amd64
OS: Debian GNU/Linux bookworm/sid
WM: Xfwm4
Shell: zsh 5.9
I was really excited for this, when settings is launched:
/usr/bin/night_mode_settings:4: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
import distutils.util
Traceback (most recent call last):
File "/usr/bin/night_mode_settings", line 140, in <module>
settings = SettingsWindow()
File "/usr/bin/night_mode_settings", line 41, in __init__
loadUi(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'settings.ui'), self)
File "/home/tom/.local/lib/python3.10/site-packages/PyQt5/uic/__init__.py", line 238, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
File "/home/tom/.local/lib/python3.10/site-packages/PyQt5/uic/Loader/loader.py", line 66, in loadUi
return self.parse(filename, resource_suffix)
File "/home/tom/.local/lib/python3.10/site-packages/PyQt5/uic/uiparser.py", line 1020, in parse
document = parse(filename)
File "/usr/lib/python3.10/xml/etree/ElementTree.py", line 1222, in parse
tree.parse(source, parser)
File "/usr/lib/python3.10/xml/etree/ElementTree.py", line 569, in parse
source = open(source, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/settings.ui'
When the daemon is launched:
/usr/bin/night_mode_daemon:6: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
import distutils.util
night_mode_daemon /home/tom/.config/night-mode.conf gives {} {}
night_mode_daemon config before reload: {} {}
Traceback (most recent call last):
File "/usr/bin/night_mode_daemon", line 133, in <module>
reload_config()
File "/usr/bin/night_mode_daemon", line 55, in reload_config
night_mode_enabled = distutils.util.strtobool(config['General']['nightModeEnabled'])
File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
val = dict.__getitem__(self, key)
KeyError: 'General'
Should detect and use xsct
(f.e. on debian bookworm, xsct
has replaced sct
) and also offer to use its brightness control feature.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.