Browse Source
At this point I found out that there is an xlib implementation in python and there is no need fo xutil. So, I stages these changes and I'm going to delete/highly modify those utility files.pull/2/head
Ali Hatami Tajik
2 years ago
4 changed files with 70 additions and 3 deletions
@ -0,0 +1,34 @@ |
|||||
|
|
||||
|
"""Setup Monitor Script |
||||
|
|
||||
|
Author: Ali Hatami Tajik [hatam](mailto:a.hatam008@gmail.com) |
||||
|
Date: 2023 Mar 04 |
||||
|
|
||||
|
This script should be used whenever a change happen in the rdm system, I |
||||
|
guess! But as I investigate a rdm change event will happen many time in case |
||||
|
of addition or removal of a monitor auto configuration is done by the |
||||
|
org.mate.SettingsDaemon.plugins.xrandr deamon. I'll searching for a way to |
||||
|
change that event to run our specified script. |
||||
|
|
||||
|
|
||||
|
This script will do the following: |
||||
|
1. List currently available monitors |
||||
|
2. Map those to config file |
||||
|
3. Replace default values for missing configs |
||||
|
4. Handle missing touch-screen/main monitor |
||||
|
NOTE: In general we use at least two monitoers with our system. |
||||
|
One is for touch screen and one is for regular screen. In |
||||
|
case of one missing a callback is run to handle that |
||||
|
occurance (an event may send to the software or a temp log |
||||
|
file may be updated so the software adjust ifself |
||||
|
correspondigly). |
||||
|
|
||||
|
Config files are in JSON format and spesify screen output name and their |
||||
|
mode (xrandr resolution and stuff may be added but for now --auto/--prefered |
||||
|
option is used). The format is: |
||||
|
|
||||
|
""" |
||||
|
|
||||
|
|
||||
|
if __name__ == "__main__": |
||||
|
pass |
Loading…
Reference in new issue