Notes from code and work Snippet, scripts and code

Xrandr: max supported monitor 17 April 2022

Run and look at "4 outputs"

$ Providers: number : 1
Provider 0: id: 0x46 cap: 0xb, Source Output, Sink Output,
    Sink Offload crtcs: 4 outputs: 4 associated providers: 0 name:Intel


Python best practices 17 April 2022

Don’t do this:

a = []
for i in range(x): 
    if i % 2 == 0:
        a.append(i)
Rather do this:
a = [i for i in range(x) if i%2 == 0]

Don’t do this:
if a > 5:
    v = True
else:
    v = False
Do this:
v = a > 5 #it sets v to true if a > 5 else False
True and false:
v = 'Yes' if a > 5 else 'No'
# or
v = (‘No’,’Yes’)[a>5]


found 2 note, displaying 1 - 2