Update i3status-rs configuration for 0.30

This commit is contained in:
Charlotte Van Petegem 2023-03-15 17:45:40 +01:00
parent 052bfe1833
commit 496ff7ca26
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -51,9 +51,10 @@ in
i3status-rust = { i3status-rust = {
enable = true; enable = true;
bars.default = { bars.default = {
icons = "awesome6"; settings = {
settings.theme = { icons.icons = "awesome6";
name = "gruvbox-light"; theme = {
theme = "gruvbox-light";
overrides = { overrides = {
idle_bg = "#ffffff"; idle_bg = "#ffffff";
idle_fg = "#000000"; idle_fg = "#000000";
@ -68,34 +69,31 @@ in
separator = ""; separator = "";
}; };
}; };
};
blocks = [ blocks = [
{ {
block = "net"; block = "net";
device = "wlp2s0"; device = "wlp2s0";
format = "{ssid}"; format = " $icon $ssid ";
hide_missing = true; missing_format = "";
hide_inactive = true;
} }
{ {
block = "net"; block = "net";
device = "wlp0s20f3"; device = "wlp0s20f3";
format = "{ssid}"; format = " $icon $ssid ";
hide_missing = true; missing_format = "";
hide_inactive = true;
} }
{ {
block = "net"; block = "net";
device = "enp0s31f6"; device = "enp0s31f6";
format = "{ip}"; format = " $icon $ip ";
hide_missing = true; missing_format = "";
hide_inactive = true;
} }
{ {
block = "net"; block = "net";
device = "enp0s13f0u2u2"; device = "enp0s13f0u2u2";
format = "{ip}"; format = " $icon $ip ";
hide_missing = true; missing_format = "";
hide_inactive = true;
} }
{ {
block = "battery"; block = "battery";
@ -106,10 +104,7 @@ in
{ {
block = "music"; block = "music";
player = "firefox"; player = "firefox";
buttons = [ "prev" "play" "next" ]; format = " $icon $combo.str(max_w:40) $play $next |";
marquee = false;
max_width = 40;
hide_when_empty = true;
} }
{ {
block = "sound"; block = "sound";
@ -118,19 +113,26 @@ in
block = "custom"; block = "custom";
command = "${mic-status}"; command = "${mic-status}";
interval = 1; interval = 1;
on_click = "${pkgs.pulseaudio}/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle"; click = [{
button = "left";
cmd = "${pkgs.pulseaudio}/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle";
update = true;
}];
} }
{ {
block = "custom"; block = "custom";
json = true; json = true;
command = "${mail-status}"; command = "${mail-status}";
interval = 1; interval = 1;
on_click = "mbsync -a && emacsclient --eval \"(mu4e-update-index)\""; click = [{
button = "left";
cmd = "mbsync -a && emacsclient --eval \"(mu4e-update-index)\"";
}];
} }
{ {
block = "time"; block = "time";
interval = 1; interval = 1;
format = "%a %d/%m %H:%M"; format = " $icon $timestamp.datetime(f:'%a %d/%m %H:%M') ";
} }
]; ];
}; };