aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sway/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2023-07-18 14:34:41 -0500
committerToby Vincent <tobyv@tobyvin.dev>2023-07-18 14:34:41 -0500
commitd821cb0fee07423aadd64abc62542c7ec4dc9ed3 (patch)
treedba292564012c964360d2b4382d3aaeeb2a1b8fd /sway/.config
parent1789e696500ea545da847893a6671c13eb088da8 (diff)
fix(sway): improve statusbar config
Diffstat (limited to 'sway/.config')
-rw-r--r--sway/.config/i3status-rust/config.toml116
1 files changed, 75 insertions, 41 deletions
diff --git a/sway/.config/i3status-rust/config.toml b/sway/.config/i3status-rust/config.toml
index 5956a44..2c45700 100644
--- a/sway/.config/i3status-rust/config.toml
+++ b/sway/.config/i3status-rust/config.toml
@@ -17,21 +17,20 @@ critical_bg = "#fb4934"
critical_fg = "#1d2021"
[icons]
-icons = "none"
+icons = "material-nf"
[icons.overrides]
-bat_charging = "BAT+"
-music = "\U000f075a" # nf-md-music
-music_next = "\U000f04ad" # nf-md-skip_next
-music_pause = "\U000f03e4" # nf-md-pause
-music_play = "\U000f040a" # nf-md-play
-music_prev = "\U000f04ae" # nf-md-skip_previous
-weather_clouds = "\ue33d" # nf-weather-cloud
-weather_default = "\ue33d" # Cloud symbol as default
-weather_rain = "\ue371" # nf-weather-raindrop
-weather_snow = "\ue36f" # nf-weather-snowflake_cold
-weather_sun = "\ue30d" # nf-weather-day_sunny
-weather_thunder = "\ue31d" # nf-weather-thunderstorm
+cpu = "CPU"
+memory_mem = "MEM"
+cpu_boost_on = "BOOST"
+cpu_boost_off = ""
+disk_drive = "DISK"
+
+[[block]]
+block = "focused_window"
+[block.format]
+full = " $title.str(max_w:30) |"
+short = " $title.str(max_w:10) |"
[[block]]
block = "weather"
@@ -40,55 +39,85 @@ autolocate_interval = "once"
service.name = "metno"
[[block]]
+block = "maildir"
+interval = 60
+inboxes = ["~/.local/share/mail/gmail/INBOX"]
+threshold_warning = 1
+threshold_critical = 10
+display_type = "new"
+
+[[block]]
+block = "music"
+player = "spotifyd"
+format = " $icon {$combo.str(max_w:20) $prev $play $next |}"
+merge_with_next = true
+
+[[block]]
+block = "sound"
+if_command = "pactl list >/dev/null || aplay -l >/dev/null "
+[[block.click]]
+button = "left"
+cmd = "pavucontrol"
+
+[[block]]
block = "disk_space"
-path = "/"
-info_type = "available"
-alert_unit = "GB"
-interval = 20
-warning = 20.0
-alert = 10.0
+format = " $available "
+format_alt = " $icon $available / $total "
+merge_with_next = true
[[block]]
block = "memory"
-format = " $icon $mem_total_used_percents.eng(w:2)"
+format = " $mem_avail.eng(w:3,u:B,p:M) "
+format_alt = " $icon $mem_avail.eng(w:3,u:B,p:M) / $mem_total.eng(w:3,u:B,p:M) "
+merge_with_next = true
[[block]]
block = "cpu"
-interval = 1
+format = " $utilization "
+format_alt = " $icon $utilization $frequency {$boost |}"
-# [[block]]
-# block = "nvidia_gpu"
-# show_memory = false
-# show_clocks = true
+[[block]]
+block = "toggle"
+format = " $icon "
+if_command = "networkctl status wg0"
+command_state = "cat /sys/class/net/wg0/carrier"
+command_on = "sudo networkctl up wg0"
+command_off = "sudo networkctl down wg0"
+interval = 20
+merge_with_next = true
[[block]]
-block = "sound"
-if_command = "pactl list >/dev/null || aplay -l >/dev/null "
-[[block.click]]
-button = "left"
-cmd = "pavucontrol"
+block = "net"
+device = "^wg0$"
+format = " $icon "
+format_alt = " $device {$ip |}"
+missing_format = ""
+merge_with_next = true
+
+[[block]]
+block = "net"
+device = "^en.*$"
+format = " $icon "
+format_alt = " $device {$ip |}"
+missing_format = ""
+merge_with_next = true
[[block]]
block = "net"
device = "^wl.*$"
-format = " $icon {$ssid |}"
-format_alt = " $icon {$signal_strength $frequency $ssid |}"
+format = " $icon "
+format_alt = " $device {$signal_strength $frequency $ssid |}{$ip |}"
missing_format = ""
[[block]]
block = "battery"
device = "BAT1"
-format = " $icon $percentage "
-full_format = " FULL "
-empty_format = " $icon $percentage "
missing_format = ""
+merge_with_next = true
[[block]]
block = "battery"
device = "BAT2"
-format = " $icon $percentage "
-full_format = " FULL "
-empty_format = " $icon $percentage "
missing_format = ""
[[block]]
@@ -98,6 +127,11 @@ format.full = " $timestamp.datetime(f:'%a %m/%d %T') "
format.short = " $timestamp.datetime(f:%T) "
[[block]]
-block = "music"
-player = "spotifyd"
-format = " $icon {$combo.str(max_w:20) $prev $play $next |}"
+block = "notify"
+format = " $icon {($notification_count.eng(w:1)) |}"
+[[block.click]]
+button = "left"
+action = "show"
+[[block.click]]
+button = "right"
+action = "toggle_paused"