From 1c73ae5b9edda98ca4986d3363d7c9e2603bbf9b Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Fri, 10 Jun 2022 15:26:19 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index da13573..6ec54ad 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -586,9 +586,14 @@ try: ]) services = [] try: - services.append( - subprocess.Popen(['ibus-daemon']) - ) + services.extend([ + subprocess.Popen(['ibus-daemon']), + subprocess.Popen(r''' + swayidle -w \ + timeout 300 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' + ''', shell=True), + ]) for o in services: o.wait() finally: