summaryrefslogtreecommitdiffstatshomepage
path: root/sway/.config/i3status-rust/config.toml
blob: 283a2fd54a82df57765b93c87f7a104ece8284d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# base16-i3status-rust (https://github.com/mystfox/base16-i3status-rust)
# Gruvbox dark, hard by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)

[theme]
theme = "semi-native"

[theme.overrides]
idle_bg = "#1d2021"
idle_fg = "#d5c4a1"
info_bg = "#8ec07c"
info_fg = "#1d2021"
good_bg = "#b8bb26"
good_fg = "#1d2021"
warning_bg = "#fabd2f"
warning_fg = "#1d2021"
critical_bg = "#fb4934"
critical_fg = "#1d2021"

[icons]
icons = "material-nf"

[icons.overrides]
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"
autolocate = true
autolocate_interval = "once"
service.name = "metno"

[[block]]
block = "disk_space"
format = " $available "
format_alt = " $icon $available / $total "
merge_with_next = true

[[block]]
block = "memory"
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"
format = " $utilization "
format_alt = " $icon $utilization $frequency {$boost |}"

[[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 = "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 = "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 "
format_alt = " $device {$signal_strength $frequency $ssid |}{$ip |}"
missing_format = ""

[[block]]
block = "battery"
device = "BAT1"
missing_format = ""
merge_with_next = true

[[block]]
block = "battery"
device = "BAT2"
missing_format = ""

[[block]]
block = "time"
interval = 1
format.full = " $timestamp.datetime(f:'%a %m/%d %T') "
format.short = " $timestamp.datetime(f:%T) "

[[block]]
block = "notify"
format = " $icon {($notification_count.eng(w:1)) |}"
[[block.click]]
button = "left"
action = "show"
[[block.click]]
button = "right"
action = "toggle_paused"