Giter Site home page Giter Site logo

xanderfrangos / twinkle-tray Goto Github PK

View Code? Open in Web Editor NEW
4.6K 22.0 154.0 16.29 MB

Easily manage the brightness of your monitors in Windows from the system tray

Home Page: https://twinkletray.com

License: MIT License

HTML 0.57% JavaScript 76.24% Python 0.36% C++ 7.05% SCSS 15.73% NSIS 0.04%
brightness brightness-control brightness-level windows electron-app nodejs ddc-ic backlight backlight-brightness monitors

twinkle-tray's People

Contributors

5idereal avatar alextreeo avatar antoni-czaplicki avatar chuckmichael avatar codef0x avatar comradekingu avatar dependabot[bot] avatar dunggramer avatar edo2313 avatar frozensnowy avatar gamerkinghd avatar kovalevartem avatar maboroshin avatar maximmax42 avatar milotype avatar mralexsfs avatar nightenom avatar poipoipoipoipoipoipoipoipoi avatar postnozet avatar samiulislamsharan avatar seo-rii avatar simonporte avatar swift-lee avatar szogabor avatar toto6038 avatar venantiusgalih avatar venusgirl avatar vistaus avatar weblate avatar xanderfrangos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twinkle-tray's Issues

help, npm ci failure

8649 verbose lifecycle [email protected]postinstall: CWD: E:\download\iedeown\twinkle-tray-1.11.4
8650 silly lifecycle [email protected]
postinstall: Args: [ '/d /s /c', 'electron-builder install-app-deps' ]
8651 silly lifecycle [email protected]postinstall: Returned: code: 1 signal: null
8652 info lifecycle [email protected]
postinstall: Failed to exec postinstall script
8653 verbose teardown shutting down workers.
8654 info teardown Done in 0s
8655 verbose stack Error: [email protected] postinstall: electron-builder install-app-deps
8655 verbose stack Exit status 1
8655 verbose stack at EventEmitter. (C:\Users\zimu2\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
8655 verbose stack at EventEmitter.emit (events.js:315:20)
8655 verbose stack at ChildProcess. (C:\Users\zimu2\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
8655 verbose stack at ChildProcess.emit (events.js:315:20)
8655 verbose stack at maybeClose (internal/child_process.js:1021:16)
8655 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
8656 verbose pkgid [email protected]
8657 verbose cwd E:\download\iedeown\twinkle-tray-1.11.4
8658 verbose Windows_NT 10.0.18362
8659 verbose argv "E:\p_x86\nodejs\node.exe" "C:\Users\zimu2\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "ci"
8660 verbose node v12.17.0
8661 verbose npm v6.14.8
8662 error code ELIFECYCLE
8663 error errno 1
8664 error [email protected] postinstall: electron-builder install-app-deps
8664 error Exit status 1
8665 error Failed at the [email protected] postinstall script.
8665 error This is probably not a problem with npm. There is likely additional logging output above.
8666 verbose exit [ 1, true ]

[Request] Add Vietnamese language

This is good project and i want to support Vietnamese language. I translated to Vietnamese but i don't know how to upload this for your team.
image

Normalize brightness feature doesn't work at all + small bug

I'm experiencing 2 bugs with the normalize brightness feature.

My settings are:
Internal display: Min: 0, Max: 100
External display: Min 0, Max 70

First of all, whenever I open the Twinkle Tray UI, the brightness of the internal display resets to 70 inmediately if it was over 70 previously.

Second, and more importantly, the feature doesn't work at all. If I set the brightness of the internal display to more than 70, it should raise the brightness of the internal display ONLY, without changing the brightness of the external display, since it's capped to 70. However, it ignores the limit and sets the brightness of the external display to 100 anyways. (and the UI lies about it saying that it's capped to 70). So the feature isn't working at all, really. It just makes the UI glitchy without acomplishing its goal.

Here's a video which shows both issues. You can see that I set the brightness of the internal display to 100 and then I check the brightness of the external display from the display's interface and it changes to 100 despite the limit. After that, I open the Twinkle Tray UI and the brightness of the internal and external displays inmediately drops to 70

https://streamable.com/xappd

The video might look like I set the brightness limit for the wrong screen but that's not the case. In fact, you can see that the internal display, which is the one that is set to uncapped, is properly recognized by the program as an internal laptop display.

Decreasing brightness on laptop display when opening twinkle tray

Encountering some weird behavior. Saw it on v1.10.0 (from Microsoft Store) and still seeing it on v1.10.1 from the GitHub release.

Almost every time I open the tray, the brightness of my laptop's built-in display decreases, generally following this sequence with some variation: 100, 83, 68, 56, 46, 38, 31, 25, 20, 16, 13, ... 1.

This doesn't happen with my external monitor (connected over USB-C->HDMI) which works perfectly with Twinkle Tray. Only the internal monitor (eDP) is affected. I've set the minimum brightness range to 90 as a workaround and am happy with that, but I thought this bug was worth putting out there.

Video: https://i.imgur.com/szHF6RW.mp4

Using multiple monitors crashes program on boot.

Error given:

A JavaScript error occurred in the main process

[Content]
Uncaught Exception:
Error: Failed to get physical monitor count.
    at process.func (electron/js2c/asar.js:140:31)
    at process.func [as dlopen] (electron/js2c/asar.js:140:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1016:18)
    at Object.func (electron/js2c/asar.js:140:31)
    at Object.func [as .node] (electron/js2c/asar.js:149:18)
    at Module.load (internal/modules/cjs/loader.js:816:32)
    at Module._load (internal/modules/cjs/loader.js:728:14)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Module.require (internal/modules/cjs/loader.js:853:19)

On version 1.9.0

[Bug] Autoupdate not working

Clicking the "update" button in the pop-up window will do nothing.

Opening the settings and clicking "update", will have the text stuck at "Downloading update..."

Screenshot 2020-01-31 17 22 42

Tried running the program as admin. Same results as above.

Add indicator to match volume controls

When you adjust volume with keyboard shortcuts an indicator pops up in the top left of the screen for a few seconds. Can we get this same thing for the brightness hotkeys?

Btw, I love this app and use it all the time!

[Feature request] Hotkey support

Been using the app for a while and I love it, but I think that support for custom hotkeys would be a great addition.
Keep up the good work!

Using brightness hotkeys minimizes some exclusive fullscreen games

As of the 1.12.0 update, I'm having an issue where using the brightness hotkeys in Rocket League (running in exclusive fullscreen mode), causes the game to minimize each time a brightness hotkey is pressed. I went back to 1.11.4 and confirmed this doesn't happen. Unfortunately I couldn't recreate in other games, but RL is free on Epic Games if you need it for testing.

[Bug] App theme, characters and moon-button

Hi! Saw the app mentioned by you on reddit and thought I'd give it a try. I installed the app from your github releases page (v1.6.3) and I have the following issues.

  1. The app doesn't respect my system app theme. (See Image)
  2. The app can't handle all characters (See monitor name in image)
  3. After installing the app, I clicked the moon button because I thought that would make it dark. But my screen just turned off, which had my heart skip a beat. I think you should explain what this button does during setup or when first used.

Screenshot 2020-01-13 10 28 51

Use system font?

image

image

It would be good if it was possible to use a system font for the tray icon for consistency sake

A javaScript error occurred in the main process

I cannot start the application. Not sure what this error means. I've tried restarting my machine and I actually even reset the computer just to see if I can install this. Any ideas what's going on? I would really like to get this working.

image

Detect monitor specific brightness range automatically

Not all monitors can be set from 0-100. Mine goes from 0-20 for example. You added a user setting for this, which is ok if you know your monitor's range, but it would be better if the app would read this automatically (this information is available when reading the monitor properties via DDC/CI).

By the way, I like the interface of this app a lot. I just replaced ClickMonitorDDC, which I was using for a long time.

System style tray icon

We can add an option like EarTrumpet to switch tray icon style whether twinkle tray style or system style from Segoe MDL2.

Improve flyout closing

Thanks for the App, Twinkle Tray looks great, works great and the additional settings are really useful! Great to see well mantained software.

I only have one problem with Twinkle Tray: the flyout doesn't close reliable in some situations. Especially when playing a video game and trying to quickly switch the brightness. Going back into the game Twinkle Tray stays open.

Maybe you could improve the behaviour, how Twinkle Tray recognizes being out of focus or closing Twinkle Tray if the user clicks again on the Icon on the taskbar.

The easiest fix: implement a keyboard listener which closese the flyout when pressing the "esc" key. Every Windows Flyout supports this.

Thanks!

White system tray icon on windows light colour scheme hard to see.

If using Windows 10 light colour scheme (almost white) the Twinkle Tray system tray icon stays white which is hard to see against the background.

Would be nice to have an option to turn it black (maybe auto change) if the Windows theme colour is changed to white.

Why need four processes?

Best app in win10!
but i want know is 1XX MB in win10 store?some other app just need 1.X MB.
And why need four processes?
Thanks to xanderfrangos!

HDR support

When HDR support is enabled, brightness control on my monitor is disabled.

Instead, the following slider can control brightness of SDR apps, which acts like a 'pseudo' brightness bar.

image

Twinkle tray's brightness control in this scenario should either

  1. Acts as a proxy and adjust the slider shown in the image above.
  2. Disable itself

Right now I can mess around with the brightness slier in Twinkle tray, but it looks like it's corrupting my monitors brightness setting (which are disabled) and has the ability to completely turn off my monitor at setting 0%, and in general doesn't look like it's doing the correct thing and possibly corrupting some state. I had to restart my monitor to reset settings back.

weblate error

An error occurs when editing on weblate. It may be a temporary error on the site, but I report it.

Because I choose japanese, The error message is Japanese, and contains the English word "checksum".

error message:
パラメータ checksum 内でエラー: この項目は必須です。

Localization

I am saddened that the program is in English only.
I suggest to localize the program.
I am ready to assist in the translation into Russian.
(For example, you can use the service Crowdin or any other. Crowdin is free for Open source projects.)

Monitor(s) not being detected

If you're having trouble with Twinkle Tray detecting your displays, please refer to the following page:

Display Detection & Support Issues:
https://github.com/xanderfrangos/twinkle-tray/wiki/Display-Detection-&-Support-Issues

If that page doesn't help, post to the Monitor Compatibility Issues discussions and I'll do my best to help when I'm available. I also encourage users who've determined that the problem wasn't covered in the wiki page to share what worked for them.

Please do not open an Issue about a specific monitor if the issue is isolated to just that model.

[Request] Add battery icon

Currently, I have to have two icons in the systray - the twinkie one and the power icon to change screen brightness and see my battery charge. It would be nice to have 2in1 functionality twinkie icon for that

Very slow adaptation of brightness adjustments

Regardless of my settings, the brightness is only shown on the display after a delay (about 4-5 seconds later).
With the tool Monitorian it works fluently - so it's basically possible with my PC model (Samsung RV720 laptop).
But Twinkle Tray has better features otherwise, so I would like to continue using it.

[Request] Change contrast

The app is very useful, but currently the contrast cannot be changed. I'm eagerly looking forward to the addition of the ability to change the contrast with the slider. I like this app so much that I will pay for it if the ability to change the contrast is added.

[Help wanted]Unable to set theme(light/dark)

I can't find the switch for app theme changing(light/dark).

It happened like this:
I used an old ver.1.11.4, and set a light app theme, so i got used to its appearance. But after I update ver.1.12.3, app theme changed to dark background, then I tried to find the switch, but I failed.

Then, I closed the app and tried to edit file: %userprofile%\AppData\Roaming\twinkle-tray\settings.json:

    "theme":"default"
   ↓
    "theme":"light"

Relaunch app, but nothing changed(still dark background), and I read the file(settings.json) again, it restored.

So, that all, could you please provide help?

Looking forward to your replay.

raw user configs in Debug page:

{
  "isDev": false,
  "userClosedIntro": true,
  "theme": "default",
  "icon": "icon",
  "updateInterval": 500,
  "openAtLogin": true,
  "killWhenIdle": false,
  "remaps": {
    "DISPLAY\\BOE0747\\4&8a52dc4&0&UID265988_0": {
      "min": 0,
      "max": 25
    }
  },
  "hotkeys": {},
  "hotkeyPercent": 10,
  "adjustmentTimes": [],
  "adjustmentTimeIndividualDisplays": false,
  "checkTimeAtStartup": false,
  "order": [],
  "checkForUpdates": false,
  "dismissedUpdate": "",
  "language": "system",
  "settingsVer": "v1.12.3",
  "names": {
    "DISPLAY\\BOE0747\\4&8a52dc4&0&UID265988_0": "Twinkle ☆"
  },
  "analytics": true,
  "scrollShortcut": false,
  "useAcrylic": false,
  "useNativeAnimation": false,
  "uuid": "d2464a07-95c2-45cb-ac76-40b1c7a114d8",
  "branch": "master"
}

image about system color settings and app page(couldn't find dark/light switch in app pages):
notittle

One of the monitors not respecting brightness settings

When I first installed the app, everything worked. Installation was from the MS store.

In the mean time my main monitor (Lenovo) stoped reacting to changes of brightness. At the same time Dell changes are visible. Nothing happens even if I link the monitor values.
Today I installed the latest version from Github, but nothing changed (except for Lenovo name now handled correctly - thanks for that).
Both monitors are connected via DP, if that matters, to AMD RX580. Drivers are up to date, as per Radeon software. Difference is that Dell is pivoted to vertical position. Lenovo is horizontal.

What happens:
I make changes to sliders. Dell reacts instantly. For Lenovo nothing happens.
I close the Twinkle tray windows and opet it again. Lenovo values are defaulted to 50.

[Feature request?] Not recognizing all the monitors

I have 4 monitors plugged in, three regular monitors and one tv. Only one of them is recognized by the program, however. The one that is recognized is the one plugged in through VGA into my motherboard, while the other three are connected to my graphics card.

Is this a bug or if the program is intended to only recognize the monitors directly plugged in to the internal graphics? If it's the second, I'd like to request support for dedicated graphics card to be added in a future update.

Implement acrylic

image

image

transparency effects are enabled, yet twinkle tray shows a solid color.

OSD not displayed on all virtual desktops

I use hotkeys to change the brightness of my monitor, not the tray icon.
When using multiple Windows 10 virtual desktops, the OSD, displaying the current brightness, only pops up on the first virtual desktop. When any other virtual desktop is active, the OSD is not visible (but the brightness still changes).

[Bug] Changelog is broken in-app

Windows 10 64 bit, build 1909
All the lines of the changelog overlap :

image

Language set to french, also tested manually set english.
Scaling set to 125% in Windows, tested reverting to 100% to no avail.
Screen resolution does not matter (tested in 3440x1440 and 1920x1080).
Tested resizing the window to no avail.

Change brightness according to sunrise/sunset information of local area

Good day,

I would like to configure Twinkle Tray to change the display brightness not to a specific time but according to sunrise and sunset information in the area where I currently am. Could you implement this function in the UWP app version?? It was very handy if Twinkle tray would look automatically in what area I am and if it could update the sunset/sunrise time information on a maybe daily basis and then changes the brightness according to when the sun rises or goes down.

Hope you may implement this! Thanks!

[Request] Double click on tray icon

It would be nice if we could take advantage of the tray icon to access a shorcut, ideally user defined, like turning off the default monitor, opening settings, etc.
Keep up the good work!

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.