bitwarden

This commit is contained in:
jaydee
2024-10-30 12:44:41 +01:00
parent 2ce50277cb
commit 0271860fea
2 changed files with 16 additions and 15 deletions

View File

@@ -1,9 +1,9 @@
[global]
mykey = prod/v1/install/
[morefine]
right = ["HDMI-A-0", "1920x1080"]
tleft = ["DisplayPort-6", "1920x1080"]
tright = ["DisplayPort-8", "1920x1080"]
left = ["DisplayPort-7", "2560x1440"]
mid = ["DisplayPort-0", "3440x1440"]
{"global":
{"mykey": "prod/v1/install/"}
"morefine":
{"right": ["HDMI-A-0", "1920x1080"]},
{"tleft": ["DisplayPort-6", "1920x1080"]},
{"tright": ["DisplayPort-8", "1920x1080"]},
{"left": ["DisplayPort-7", "2560x1440"]},
{"mid": ["DisplayPort-0", "3440x1440"]}
}

View File

@@ -17,14 +17,15 @@ import ctypes
import getopt
import random
import requests
import configparser
config = configparser.ConfigParser()
config.read(r'/etc/mqtt_srv/mqtt_srv.cfg')
lala = config.get('morefine', 'right')
print(lala)
print(lala[0])
with open("/etc/mqtt_srv/mqtt_srv.cfg") as json_file:
config = json.load(json_file)
print(config)
print(config["morefine"])
#import psutil
stats = {}