diff options
-rw-r--r-- | i3/.i3/config | 42 | ||||
-rw-r--r-- | i3/.i3status.conf | 63 | ||||
-rwxr-xr-x | i3/bin/i3status.py | 12 |
3 files changed, 72 insertions, 45 deletions
diff --git a/i3/.i3/config b/i3/.i3/config index 21390d6..f329ce5 100644 --- a/i3/.i3/config +++ b/i3/.i3/config @@ -110,23 +110,33 @@ bindsym $mod+Shift+0 move container to workspace 10 bindsym $mod+r mode "resize" mode "resize" { - bindsym j resize shrink width 1 px or 1 ppt - bindsym k resize grow height 1 px or 1 ppt - bindsym l resize shrink height 1 px or 1 ppt - bindsym semicolon resize grow width 1 px or 1 ppt - - bindsym Shift+j resize shrink width 5 px or 5 ppt - bindsym Shift+k resize grow height 5 px or 5 ppt - bindsym Shift+l resize shrink height 5 px or 5 ppt - bindsym Shift+semicolon resize grow width 5 px or 5 ppt - - # back to normal - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+r mode "default" + bindsym j resize shrink width 1 px or 1 ppt + bindsym k resize grow height 1 px or 1 ppt + bindsym l resize shrink height 1 px or 1 ppt + bindsym semicolon resize grow width 1 px or 1 ppt + + bindsym Shift+j resize shrink width 5 px or 5 ppt + bindsym Shift+k resize grow height 5 px or 5 ppt + bindsym Shift+l resize shrink height 5 px or 5 ppt + bindsym Shift+semicolon resize grow width 5 px or 5 ppt + + # back to normal + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" } bar { - font pango:DejaVu Sans, 12 - status_command i3status.py + output primary + font pango:DejaVu Sans, pango:Note Color Emoji 16 + status_command i3status.py + tray_output primary +} + +bar { + output nonprimary + font pango:DejaVu Sans, pango:Note Color Emoji 10 + status_command cat - + tray_output none + mode hide } diff --git a/i3/.i3status.conf b/i3/.i3status.conf index 44b2158..9c763f2 100644 --- a/i3/.i3status.conf +++ b/i3/.i3status.conf @@ -1,49 +1,60 @@ general { - colors = true - interval = 5 - output_format = "i3bar" + colors = true + color_degraded = "#ffa500" + color_bad = "#aa0000" + interval = 5 + output_format = "i3bar" } order += "volume master" order += "wireless wlp1s0" order += "battery 0" order += "cpu_usage" -order += "load" -order += "tztime utc" +order += "cpu_temperature 0" +order += "tztime amsterdam" volume master { - format = "βͺ: %volume" - format_muted = "Γβͺ: %volume" - device = "default" - mixer = "Master" - mixer_idx = 0 + format = "π %volume" + format_muted = "π %volume" + color_degraded = "#777777" + device = "default" + mixer = "Master" + mixer_idx = 0 } wireless wlp1s0 { - format_up = "%essid: %quality, %bitrate (%ip)" - format_down = "wlan0 down" + format_up = "π %essid: %quality, %bitrate" + format_down = "π© wlan down" } battery 0 { - format = "%status %percentage %remaining %consumption" - hide_seconds = true - status_chr = "β‘" - status_bat = "π" - status_full = "β¦" - status_unk = "?" - low_threshold = 30 - threshold_type = "percentage" + format = "%status %percentage %remaining %consumption" + hide_seconds = true + status_chr = "β‘" + status_bat = "π" + status_full = "π" + status_unk = "?" + low_threshold = 30 + threshold_type = "percentage" } cpu_usage { - format = "βοΈ %usage" + format = "β΅ %usage" + format_above_degraded_threshold = "π %usage" + format_above_threshold = "π %usage" + separator = false + degraded_threshold = 10 + max_threshold = 50 } -load { - max_threshold = "0.7" +cpu_temperature 0 { + format = "%degreesΒ°C" + format_above_threshold = "π₯΅ %degreesΒ°C" + path = "/sys/class/thermal/thermal_zone0/temp" + max_threshold = 50 } -tztime utc { - format = "%a %b %-d, %H:%M" - timezone = "Europe/Amsterdam" +tztime amsterdam { + format = "π
%a %b %-d, %H:%M" + timezone = "Europe/Amsterdam" } 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] |