adjust some waybar settings

This commit is contained in:
Kabbone 2022-10-22 11:19:09 +02:00
parent e62a650b99
commit 1dc2fb31b6

View File

@ -28,6 +28,7 @@
style = '' style = ''
* { * {
border: none; border: none;
border-radius: 0;
font-family: FiraCode Nerd Font Mono; font-family: FiraCode Nerd Font Mono;
font-size: 13px; font-size: 13px;
min-height: 0; min-height: 0;
@ -37,21 +38,33 @@
border-bottom: 3px solid transparent; border-bottom: 3px solid transparent;
color: white; color: white;
} }
workspace,
idle_inhibitor, idle_inhibitor,
mode,
clock, clock,
pulseaudio, pulseaudio,
network, network,
mpd, mpd,
memory, memory,
network, network,
window,
cpu, cpu,
disk, disk,
battery { battery {
margin: 15px; margin: 0 6px;
padding: 5px; padding: 0 5px;
}
mode {
background: transparent;
border-bottom: 2px solid gray;
}
cpu {
background: transparent;
border-bottom: 2px solid yellow;
color: white;
}
memory {
background: transparent;
border-bottom: 2px solid green;
color: white;
} }
workspaces button { workspaces button {
padding: 0 5px; padding: 0 5px;
@ -95,7 +108,7 @@
modules-center = [ "clock" ]; modules-center = [ "clock" ];
#modules-left = [ "wlr/mode" "wlr/workspaces" "wlr/window" ]; #modules-left = [ "wlr/mode" "wlr/workspaces" "wlr/window" ];
modules-left = [ "wlr/workspaces" ]; modules-left = [ "wlr/workspaces" ];
modules-right = [ "idle_inhibitor" "pulseaudio" "network" "cpu" "memory" "temperature" "battery" "tray" ]; modules-right = [ "idle_inhibitor" "pulseaudio" "network" "cpu" "memory" "backlight" "temperature" "battery" "tray" ];
#modules-right = [ "cpu" "memory" "pulseaudio" "clock" "tray" ]; #modules-right = [ "cpu" "memory" "pulseaudio" "clock" "tray" ];
"sway/workspaces" = { "sway/workspaces" = {
@ -118,7 +131,6 @@
}; };
"wlr/workspaces" = { "wlr/workspaces" = {
format = "{icon}"; format = "{icon}";
color = "white";
format-icons = { format-icons = {
"1"=""; "1"="";
"2"=""; "2"="";
@ -143,17 +155,17 @@
}; };
}; };
cpu = { cpu = {
format = "{usage}%"; format = "{usage}% ";
tooltip = false; tooltip = false;
interval = 2; interval = 2;
}; };
disk = { disk = {
format = "{percentage_used}%"; format = "{percentage_used}% ";
path = "/"; path = "/";
interval = 30; interval = 30;
}; };
memory = { memory = {
format = "{}%"; format = "{}% ";
interval = 5; interval = 5;
}; };
temperature = { temperature = {
@ -164,11 +176,11 @@
}; };
"thermal-zone" = 2; "thermal-zone" = 2;
"hwmon-path" = "/sys/class/hwmon/hwmon3/temp1_input"; "hwmon-path" = "/sys/class/hwmon/hwmon3/temp1_input";
"format" = "{icon}{temperatureC}°C"; "format" = "{temperatureC}°C {icon}";
"format-icons" = ["" "" "" "" ""]; "format-icons" = ["" "" "" "" ""];
}; };
backlight = { backlight = {
"format" = "{icon}{percent}%"; "format" = "{percent}% {icon}";
"format-icons" = ["" ""]; "format-icons" = ["" ""];
"on-scroll-up" = "light -A +5%"; "on-scroll-up" = "light -A +5%";
"on-scroll-down" = "light -U -5%"; "on-scroll-down" = "light -U -5%";
@ -180,27 +192,28 @@
warning = 20; warning = 20;
critical = 5; critical = 5;
}; };
format = "{icon}{capacity}%"; format = "{capacity}% {icon}";
format-charging = "{capacity}%"; format-charging = "{capacity}% ";
format-plugged = "{capacity}%"; format-plugged = "{capacity}% ";
format-alt = "{icon}{time}"; format-alt = "{time} {icon}";
format-icons = ["" "" "" "" ""]; format-icons = ["" "" "" "" ""];
}; };
network = { network = {
format-wifi = ""; format-wifi = " {ipaddr}";
format-ethernet = " {ifname}: {ipaddr}/{cidr}"; format-ethernet = "{ifname}: {ipaddr}/{cidr} ";
format-linked = "{ifname} (No IP)"; format-linked = "{ifname} (No IP) ";
format-disconnected = "Not connected"; format-disconnected = "Not connected ";
format-alt = "{ifname}: {ipaddr}/{cidr}"; format-alt = "{ifname}: {ipaddr}/{cidr}";
tooltip-format = "{essid} {signalStrength}%"; tooltip-format = "{essid} {signalStrength}%";
on-click-right = "${pkgs.alacritty}/bin/alacritty -e nmtui"; on-click-right = "${pkgs.alacritty}/bin/alacritty -e nmtui";
}; };
pulseaudio = { pulseaudio = {
format = "{icon}{volume}% {format_source}"; scroll-step = 1;
format-bluetooth = "{icon}{volume}% {format_source}"; format = "{volume}% {icon} {format_source}";
format-bluetooth-muted = "{volume}% {format_source}"; format-bluetooth = "{volume}% {icon} {format_source}";
format-muted = "{format_source}"; format-bluetooth-muted = "{volume}% {icon} {format_source}";
format-source = "{volume}%"; format-muted = " {format_source}";
format-source = "{volume}% ";
#format-source = "<span font='14'></span>"; #format-source = "<span font='14'></span>";
format-source-muted = ""; format-source-muted = "";
format-icons = { format-icons = {