[~] Refactor

This commit is contained in:
Siarhei Siniak 2024-03-25 22:42:58 +03:00
parent 739123980e
commit fd432fc915

@ -1474,7 +1474,10 @@ def pm_service(argv):
# -E 'powerd.*TurnedOn.*UserIsActive' | head -n 1 # -E 'powerd.*TurnedOn.*UserIsActive' | head -n 1
#''', shell=True).decode('utf-8') #''', shell=True).decode('utf-8')
if not cmd is None and 'TurnedOn' in cmd: if not cmd is None and (
'TurnedOn' in cmd or
'PrevIdle' in cmd
):
if ( if (
('AppleMultitouchDevice' in cmd and 'tp' in options.events) or ('AppleMultitouchDevice' in cmd and 'tp' in options.events) or
('AppleACPIButton' in cmd and 'pb' in options.events) or ('AppleACPIButton' in cmd and 'pb' in options.events) or