Package Details: screendimmer 0.4.2-1

Git Clone URL: https://aur.archlinux.org/screendimmer.git (read-only, click to copy)
Package Base: screendimmer
Description: A tray application to dim your monitor brightness.
Upstream URL: https://github.com/Lawrence-Chiappelli/screendimmer.git
Licenses: MIT
Submitter: lchip
Maintainer: lchip
Last Packager: lchip
Votes: 6
Popularity: 0.25
First Submitted: 2021-01-11 20:03 (UTC)
Last Updated: 2021-10-01 05:49 (UTC)

Latest Comments

milkii commented on 2023-03-18 03:20 (UTC)

It looks like from a fresh install that g+w is needed for the etc conf, else there is an error message on start;

Exception caught initializing the UI:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/screendimmer/tray.py", line 32, in __init__
    self.init_ui()
  File "/usr/lib/python3.10/site-packages/screendimmer/tray.py", line 42, in init_ui
    self._apply_properties()
  File "/usr/lib/python3.10/site-packages/screendimmer/tray.py", line 205, in _apply_properties
    self._switch_brightness_func(index_repr)()  # Apply last brightness
  File "/usr/lib/python3.10/site-packages/screendimmer/tray.py", line 375, in _hundred
    self.stage_brightness(1.0)
  File "/usr/lib/python3.10/site-packages/screendimmer/tray.py", line 99, in stage_brightness
    configutil.save_changes()
  File "/usr/lib/python3.10/site-packages/screendimmer/configutil.py", line 61, in save_changes
    with open(ini_config, 'w') as new_changes:
PermissionError: [Errno 13] Permission denied: '/etc/screendimmer/brightness.ini'

lchip commented on 2022-02-22 23:21 (UTC)

Hey Cryen, I appreciate you reaching out about that error and sorry for the late response, life has been busy. At the moment I'm personally okay with either reporting method.

I'll get around to tackling that issue soon and update this comment when resolved. It could very well be related to the new Python upgrade so I'll investigate that. An immediate remedy might be to git clone my repo, cd to screendimmer directory and manually run the program with python tray.py. No guarantees but it's still an issue I want to remedy nonetheless.

Cryen commented on 2022-01-26 22:45 (UTC) (edited on 2022-01-27 07:30 (UTC) by Cryen)

File "/usr/lib/python3.10/site-packages/screendimmer/tray.py", line 12, in <module>
    import utils, configutil, xrandr
ModuleNotFoundError: No module named 'configutil'

I just downloaded it, I'm not sure if this is caused by recent change to python 3.10 but for now it just fails. It happenes just after "Checking system resources..."

Edit: I think opening the issue on github would be a better way to track it, wouldn't it?

lchip commented on 2021-01-12 04:41 (UTC)

Thanks for reaching out yochananmarqos! I updated the PKGBUILD accordingly. If you come across any further issues, feel free to let me know.

yochananmarqos commented on 2021-01-11 23:56 (UTC)

This is missing the dependencies, see the setup.py

depends=('python' 'python-screeninfo' 'python-pyqt5')

Please add a backup() array for the .ini file:

backup=("etc/$pkgname/brightness.ini")