This commit is contained in:
2018-07-16 21:33:50 +02:00
parent 6a6520e15c
commit 68f8e15b94
4 changed files with 5 additions and 106 deletions

View File

@@ -1,17 +0,0 @@
#!/usr/bin/env python3
import i3ipc
import subprocess
def on_shutdown(conn=None):
for ws in range(1, 4):
file = open('/home/felix/.config/i3/workspace_' + str(ws) + '.json', 'w')
bashCommand = 'i3-save-tree --workspace ' + str(ws)
subprocess.Popen(bashCommand.split(), stdout=file)
on_shutdown()
conn = i3ipc.Connection()
conn.on('ipc_shutdown', on_shutdown)
conn.main()