aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2023-03-08 20:35:46 +0100
committerCamil Staps2023-03-08 20:35:46 +0100
commit1f4ca42bca91633e4cd8439d8b4c84f779b97e4e (patch)
treed20edf940c3b48c0acf3b1f11845c9afc73b40f7
parenti3: open htop with Mod+Settings (on Yoga laptop) (diff)
Completely revamp i3bar using emoji
-rw-r--r--i3/.i3/config42
-rw-r--r--i3/.i3status.conf63
-rwxr-xr-xi3/bin/i3status.py12
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]