waybar: modules no longer need to be nested

feat/kile-v2
Ricard Illa 2023-01-07 20:29:48 +01:00
parent 1a42340149
commit aa5f170a09
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 62 additions and 64 deletions

View File

@ -9,71 +9,69 @@
modules-left = [ "river/tags" ]; modules-left = [ "river/tags" ];
modules-center = [ "river/window" ]; modules-center = [ "river/window" ];
modules-right = [ "tray" "pulseaudio" "battery" "network" "clock" ]; modules-right = [ "tray" "pulseaudio" "battery" "network" "clock" ];
modules = { clock.format = ''{: %m/%d <span color="#a89984">|</span> %H:%M}'';
clock.format = ''{: %m/%d <span color="#a89984">|</span> %H:%M}''; network = {
network = { format-icons = [
format-icons = [ ''<span color="#fb4944"></span>''
''<span color="#fb4944"></span>'' ''<span color="#fabd2f"></span>''
''<span color="#fabd2f"></span>'' ''<span color="#b8bb26"></span>''
''<span color="#b8bb26"></span>'' ];
]; format = "({ifname})";
format = "({ifname})"; format-wifi = "{icon} {signalStrength}";
format-wifi = "{icon} {signalStrength}"; format-disconnected = ''<span color="#a89974"></span>'';
format-disconnected = ''<span color="#a89974"></span>''; format-ethernet = "";
format-ethernet = "";
};
battery = {
states = {
good = 95;
warning = 50;
critical = 20;
};
format-icons = {
discharging = [
''<span color="#fb4944"></span>''
''<span color="#fb4944"></span>''
''<span color="#fb4944"></span>''
''<span color="#fabd2f"></span>''
''<span color="#fabd2f"></span>''
''<span color="#fabd2f"></span>''
''<span color="#b8bb26"></span>''
''<span color="#b8bb26"></span>''
''<span color="#b8bb26"></span>''
]; # 
charging = [
''<span color="#fb4944"></span>''
''<span color="#fb4944"></span>''
''<span color="#fabd2f"></span>''
''<span color="#fabd2f"></span>''
''<span color="#b8bb26"></span>''
''<span color="#b8bb26"></span>''
]; # 
};
format = " {capacity}";
format-full = "";
format-good-charging = "";
format-plugged = "";
format-charging = "{icon} {capacity}";
format-discharging = "{icon} {capacity} ({time})";
interval = 5;
};
pulseaudio = {
states = {
high = 101;
very_high = 111;
};
format-icons = [
''<span color="#a89974"></span>''
''<span color="#83a587">奔</span>''
''<span color="#b8bb26"></span>''
];
format = "{icon} {volume}";
format-bluetooth = "{icon} {volume}";
format-muted = "";
};
tray.icon-size = 14;
}; };
battery = {
states = {
good = 95;
warning = 50;
critical = 20;
};
format-icons = {
discharging = [
''<span color="#fb4944"></span>''
''<span color="#fb4944"></span>''
''<span color="#fb4944"></span>''
''<span color="#fabd2f"></span>''
''<span color="#fabd2f"></span>''
''<span color="#fabd2f"></span>''
''<span color="#b8bb26"></span>''
''<span color="#b8bb26"></span>''
''<span color="#b8bb26"></span>''
]; # 
charging = [
''<span color="#fb4944"></span>''
''<span color="#fb4944"></span>''
''<span color="#fabd2f"></span>''
''<span color="#fabd2f"></span>''
''<span color="#b8bb26"></span>''
''<span color="#b8bb26"></span>''
]; # 
};
format = " {capacity}";
format-full = "";
format-good-charging = "";
format-plugged = "";
format-charging = "{icon} {capacity}";
format-discharging = "{icon} {capacity} ({time})";
interval = 5;
};
pulseaudio = {
states = {
high = 101;
very_high = 111;
};
format-icons = [
''<span color="#a89974"></span>''
''<span color="#83a587">奔</span>''
''<span color="#b8bb26"></span>''
];
format = "{icon} {volume}";
format-bluetooth = "{icon} {volume}";
format-muted = "";
};
tray.icon-size = 14;
}]; }];
style = '' style = ''
* { * {