Advertisement
Guest User

Untitled

a guest
Jan 4th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. import i3ipc
  4. import os
  5.  
  6. i3 = i3ipc.Connection()
  7.  
  8. def on_workspace_focus(self, e):
  9. if e.current:
  10.  
  11. os.system('./background.sh')
  12.  
  13. i3.on('workspace::focus', on_workspace_focus)
  14.  
  15. i3.main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement