Skip to content

Instantly share code, notes, and snippets.

@phwelo
Created May 31, 2018 04:18
Show Gist options
  • Save phwelo/0c9360a45338d6548a4f93ebcda9cfa7 to your computer and use it in GitHub Desktop.
Save phwelo/0c9360a45338d6548a4f93ebcda9cfa7 to your computer and use it in GitHub Desktop.
i3 split indicator script using nerdfonts
#!/usr/bin/env python3
import i3ipc
i3 = i3ipc.Connection()
splitv_text = '⿱'
splith_text = '⿰'
split_none = '•⿴'
parent = i3.get_tree().find_focused().parent
if parent.layout == 'splitv':
print(splitv_text)
elif parent.layout == 'splith':
print( splith_text )
else:
print( split_none )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment