Coder Social home page Coder Social logo

Comments (12)

archisman-panigrahi avatar archisman-panigrahi commented on July 19, 2024

Will this do? Just need to add Javascript.
now

from brightness.

zlatanvasovic avatar zlatanvasovic commented on July 19, 2024

Cool!

2014-11-20 11:29 GMT+01:00 Archisman Panigrahi [email protected]:

Now? Just need to add JS.
[image: now]
https://cloud.githubusercontent.com/assets/3063132/5123109/2b9b8b88-70ce-11e4-8e44-7fd9c91ca7dc.png


Reply to this email directly or view it on GitHub
#47 (comment).

Zlatan Vasović - ZDroid

from brightness.

LordAmit avatar LordAmit commented on July 19, 2024

I was thinking, what is the maximum number of monitors supported by Linux?
Instead of several sliders - and controllers - lets use just one slider per option.

I am going to provide a mockup soon about this.

from brightness.

LordAmit avatar LordAmit commented on July 19, 2024

@rcragun - can you please provide output of the command xrandr from terminal?

Here is the mockup I was talking about:

@apandada1 and @zdroid

mock

I should mention that it will support an arbitrary number of devices - which will be determined at runtime.

Although in that case, saving and loading brightness value will be a bit - messy.

from brightness.

archisman-panigrahi avatar archisman-panigrahi commented on July 19, 2024

Let's use two sliders for easily saving saving values. The other (master control) will not be saved.

Current State

master

from brightness.

archisman-panigrahi avatar archisman-panigrahi commented on July 19, 2024

@LordAmit This is still one-way. I can send signal from HTML to Python but not Python to HTML. That is why, I can execute commands from HTML via Python but cannot use Python to execute XRANDR and send the output to HTML.
Maybe, if we can run another Python file inside HTML, it can be done. But I have no idea whether it can be done. But that is another issue.

from brightness.

LordAmit avatar LordAmit commented on July 19, 2024

Sigh.
You can't run python inside html. And sending signal from html to python to system to call a system command to execute something will take a lot of time.

Which's why I kept asking for a working prototype. I am almost certain that the html based UI will lag anyway. >.<

from brightness.

archisman-panigrahi avatar archisman-panigrahi commented on July 19, 2024

Prototype is ready. Check https://github.com/apandada1/Brightness/tree/HTML

The main intention of HTML is to save settings automatically and easy designing, not stop lagging.

from brightness.

rcragun avatar rcragun commented on July 19, 2024

I am not sure if you wanted the full output of xrandr:

Screen 0: minimum 320 x 200, current 2560 x 2224, maximum 32767 x 32767
VGA1 connected primary 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
  1280x1024      60.0*+   75.0  
  1152x864       75.0  
  1024x768       75.1     60.0  
  800x600        75.0     60.3  
  640x480        75.0     60.0  
  720x400        70.1  
HDMI1 connected 1600x1200+529+1024 (normal left inverted right x axis y axis) 160mm x 90mm
  1920x1080      60.0 +   59.9     30.0     24.0     30.0     24.0  
  1920x1080i     60.1     60.0  
  1600x1200      60.0* 
  1680x1050      59.9  
  1280x1024      75.0     60.0  
  1440x900       75.0     59.9  
  1280x960       60.0  
  1360x768       60.0  
  1280x800       59.9  
  1152x864       75.0  
  1280x720       60.0     59.9  
  1024x768       75.1     70.1     60.0  
  832x624        74.6  
  800x600        72.2     75.0     60.3  
  720x480        60.0     59.9  
  640x480        75.0     72.8     66.7     60.0     59.9  
  720x400        70.1  
HDMI2 connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 376mm x 301mm
  1280x1024      60.0*+   75.0  
  1152x864       75.0  
  1024x768       75.1     60.0  
  800x600        75.0     60.3  
  640x480        75.0     60.0  
  720x400        70.1  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

from brightness.

archisman-panigrahi avatar archisman-panigrahi commented on July 19, 2024

@rcragun Could you try this. https://dl.dropboxusercontent.com/u/84627545/brightness-controller_0.1_all.deb

from brightness.

rcragun avatar rcragun commented on July 19, 2024

It is functional. I can control two screens while the third is connected but not receiving output or while all three are receiving output. "Display Number" might be confusing, since it is really the display number of the spsecific type indicated whereas above you have "Display 1" and "Display 2" (following a different numbering pattern).

from brightness.

archisman-panigrahi avatar archisman-panigrahi commented on July 19, 2024

@rcragun I thought if there are two types of display (one VGA and one HDMI) and the first is VGA1, the second will be HDMI2.

But actually, the second is HDMI1. So I need to rewrite some code.

from brightness.

Related Issues (20)

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.