From fd432fc9152bb41457d83d9ec525bfff638352f5 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Mon, 25 Mar 2024 22:42:58 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index f272ad0..10f9df4 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -1474,7 +1474,10 @@ def pm_service(argv): # -E 'powerd.*TurnedOn.*UserIsActive' | head -n 1 #''', 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 ( ('AppleMultitouchDevice' in cmd and 'tp' in options.events) or ('AppleACPIButton' in cmd and 'pb' in options.events) or