Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import i3ipc
- import os
- i3 = i3ipc.Connection()
- def on_workspace_focus(self, e):
- if e.current:
- os.system('./background.sh')
- i3.on('workspace::focus', on_workspace_focus)
- i3.main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement