[~] Refactor
This commit is contained in:
parent
56cea129e5
commit
1c73ae5b9e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user