Created
May 31, 2018 04:18
-
-
Save phwelo/0c9360a45338d6548a4f93ebcda9cfa7 to your computer and use it in GitHub Desktop.
i3 split indicator script using nerdfonts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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