Git Product home page Git Product logo

screendimmer's Issues

accidentally quitting

I am using manjaro xfce
I click the system tray icon with right click but most of times accidentally closing the application.

Can you add confirmation for quitting
Also swipe buttons Donate and Quit will be better for protecting accidentally closing as i do.

Command-line convenience arguments?

screendimmer works great as a tray menu for both internal and external screens, but other solutions like brillo don't manage that well.

Could it be possible to have the ability to use screendimmer from the command-line with arguments that get passed to the running process?

Maybe that's beyond the project scope, but I just thought it would be nice to have the same app do both, and maybe it would help keep the app stay in sync with the brightness status (because it hasn't been changed by another app).

Thanks again!

/etc config permissions error

Started happening yesterday or so

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'

Contrast ratio

Is this feature supposed to work as a software dimmer or hardware dimmer? I just installed it from aur and all it does is reducing contrast with no impact on actual monitor brightness.

kill screen dimmer

i like to have everything on a macro and when i use my normal sh script to kill screen dimmer the effect remains after the program is closed

#!/bin/bash
PID=`ps -eaf | grep screendimmer| grep -v grep| grep -v bash| awk '{print $2}'`
    if [[ "" !=  "$PID" ]]
    then
        echo "killing $PID" 
        kill $PID
    else
        echo "PID not found"

    fi

Fails to start when any screen is a clone of another

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 41, in init_ui
    self._apply_connections()
  File "/usr/lib/python3.10/site-packages/screendimmer/tray.py", line 181, in _apply_connections
    [(i, monitor.triggered.connect(self._switch_monitor_func(i))) for i, monitor in enumerate(self.monitors)]
  File "/usr/lib/python3.10/site-packages/screendimmer/tray.py", line 181, in <listcomp>
    [(i, monitor.triggered.connect(self._switch_monitor_func(i))) for i, monitor in enumerate(self.monitors)]
  File "/usr/lib/python3.10/site-packages/screendimmer/tray.py", line 251, in _switch_monitor_func
    return switcher[index]
KeyError: 3

[Enhancement] Option to set brightness to 100% on exit/on turn off

I would love to have an option to set the brightness back at normal (100%) on application exit, so the next time we run screendimmer it doesn't change the brightness until we ask it explicitly.

I have it running automatically on my computer (Arch Linux), and the evening/night I set the brightness (from screendimmer tray icon) to 30%.
The problem is when I turn on my computer the morning, since I can barely see the screen.

In my case, normal brightness level (100%) reset at the app exit would be the easiest (instead of manually setting it to 100% during the night).

Thank you for considering this request for enhancement.

Info on control brightness in vm or vga out

Hi
I would like to know if your soft can also be able to control the output or the overall bright/dimm of a session ? Like if we run xrdp, can it be possible to have it dim ..

Also, while i did install your app over arch EndeavourOs , on a hp microserver Gen8 with a vga port, it don't do anything. not quite sure.. xrandr --current do give all rez possible .. but will try over a nuc later.

thanks

Slider?

Hello. I have been using https://github.com/Fushko/gammy but that's now depricated for https://github.com/Fushko/gummy which is just CLI.

I know it would be something other than a menu, so feel free to close if out of scope, but how about a slider for adjusting the brightness? Hidden behind a flag? Maybe on left click (as that does nothing when I try it)?

Not starting; importlib.metadata.PackageNotFoundError

02:47:23 milk@red:~ % screendimmer
Traceback (most recent call last):
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 397, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/screendimmer", line 33, in <module>
    sys.exit(load_entry_point('screendimmer==0.4.2', 'gui_scripts', 'screendimmer')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/screendimmer", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 862, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 399, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for screendimmer

I have extra/python-importlib-metadata 5.1.0-2 (40.3 KiB 186.7 KiB) (Installed).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.