[~] Refactor
This commit is contained in:
parent
56cea129e5
commit
1c73ae5b9e
@ -586,9 +586,14 @@ try:
|
|||||||
])
|
])
|
||||||
services = []
|
services = []
|
||||||
try:
|
try:
|
||||||
services.append(
|
services.extend([
|
||||||
subprocess.Popen(['ibus-daemon'])
|
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:
|
for o in services:
|
||||||
o.wait()
|
o.wait()
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
Reference in New Issue
Block a user