Skip to content

Instantly share code, notes, and snippets.

View Godron629's full-sized avatar

Gideon Richter Godron629

View GitHub Profile
#!/usr/bin/env python
import i3
outputs = i3.get_outputs()
workspaces = i3.get_workspaces()
# figure out what is on, and what is currently on your screen.
workspace = list(filter(lambda s: s['focused']==True, workspaces))
output = list(filter(lambda s: s['active']==True, outputs))