diff options
author | Camil Staps | 2023-03-08 20:35:46 +0100 |
---|---|---|
committer | Camil Staps | 2023-03-08 20:35:46 +0100 |
commit | 1f4ca42bca91633e4cd8439d8b4c84f779b97e4e (patch) | |
tree | d20edf940c3b48c0acf3b1f11845c9afc73b40f7 /i3/bin/i3status.py | |
parent | i3: open htop with Mod+Settings (on Yoga laptop) (diff) |
Completely revamp i3bar using emoji
Diffstat (limited to 'i3/bin/i3status.py')
-rwxr-xr-x | i3/bin/i3status.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/i3/bin/i3status.py b/i3/bin/i3status.py index d5116ca..06f96c2 100755 --- a/i3/bin/i3status.py +++ b/i3/bin/i3status.py @@ -23,15 +23,21 @@ def parse_i3stat(s): def parse_kbdlayout(s): colors = { 'us(intl)' : '#66ccff', - 'us(dvorak-intl)' : '#dc68fc', 'ru(phonetic)' : '#ff3300', - 'il(biblicalSIL)' : '#66ff66' + 'il(biblicalSIL)' : '#c1b876' } + flags = { 'us(intl)' : 'πΊπΈ', + 'ru(phonetic)' : 'π·πΊ', + 'il(biblicalSIL)' : 'π' + } + try: color = colors[s] + flag = flags[s] except: color = '#cccccc' - return [{'full_text': s, 'color': color}] + flag = 'π»' + return [{'full_text': flag + ' ' + s, 'color': color}] def merge_status_items(*args): return [item for sublist in args for item in sublist] |