Waybar: Remove tray & language.

This commit is contained in:
Dmitry Voronin 2024-12-13 11:59:15 +03:00
parent 4797f3ac5b
commit 6acea071ef
2 changed files with 5 additions and 21 deletions

View file

@ -20,7 +20,6 @@ in {
]; ];
modules-left = [ modules-left = [
"clock" "clock"
# "sway/language"
"sway/scratchpad" "sway/scratchpad"
"mpris" "mpris"
]; ];
@ -33,16 +32,10 @@ in {
"pulseaudio" "pulseaudio"
"custom/display" "custom/display"
"custom/network" "custom/network"
# "tray"
]; ];
"sway/workspaces" = { "sway/workspaces" = {
all-outputs = true; all-outputs = true;
}; };
"sway/language" = {
on-click = "swaymsg 'input * xkb_switch_layout next'";
on-click-right = "xdg-open https://translate.yandex.ru/";
tooltip = false;
};
"sway/scratchpad" = { "sway/scratchpad" = {
format = "{icon} {count}"; format = "{icon} {count}";
on-click = "swaymsg 'scratchpad show'"; on-click = "swaymsg 'scratchpad show'";
@ -55,9 +48,6 @@ in {
"" ""
]; ];
}; };
tray = {
spacing = 8;
};
clock = { clock = {
format-alt = "{:%H:%M %a %d %b}"; format-alt = "{:%H:%M %a %d %b}";
on-click-right = "xdg-open https://cloud.voronind.com/apps/calendar/"; on-click-right = "xdg-open https://cloud.voronind.com/apps/calendar/";
@ -104,8 +94,8 @@ in {
format-muted = "󰸈{format_source}"; format-muted = "󰸈{format_source}";
format-source = ""; format-source = "";
format-source-muted = " 󰍭"; format-source-muted = " 󰍭";
on-click = "pactl set-sink-mute @DEFAULT_SINK@ toggle"; on-click = "pavucontrol";
on-click-middle = "pavucontrol"; on-click-middle = "pactl set-sink-mute @DEFAULT_SINK@ toggle";
on-click-right = "pactl set-source-mute @DEFAULT_SOURCE@ toggle"; on-click-right = "pactl set-source-mute @DEFAULT_SOURCE@ toggle";
scroll-step = 5; scroll-step = 5;
}; };

View file

@ -24,11 +24,9 @@ in {
#clock, #clock,
#custom-display, #custom-display,
#custom-network, #custom-network,
#language,
#mpris, #mpris,
#pulseaudio, #pulseaudio,
#scratchpad, #scratchpad {
#tray {
padding: ${paddingV} ${paddingH}; padding: ${paddingV} ${paddingH};
} }
@ -47,11 +45,9 @@ in {
#custom-display:hover, #custom-display:hover,
#custom-network:hover, #custom-network:hover,
#hardware:hover, #hardware:hover,
#language:hover,
#mpris:hover, #mpris:hover,
#pulseaudio:hover, #pulseaudio:hover,
#scratchpad:hover, #scratchpad:hover,
#tray:hover,
#workspaces button:hover { #workspaces button:hover {
background-color: rgba(${config.module.style.color.borderR},${config.module.style.color.borderG},${config.module.style.color.borderB},${toString config.module.style.opacity.desktop}); background-color: rgba(${config.module.style.color.borderR},${config.module.style.color.borderG},${config.module.style.color.borderB},${toString config.module.style.opacity.desktop});
} }
@ -63,8 +59,7 @@ in {
#custom-network, #custom-network,
#memory, #memory,
#pulseaudio, #pulseaudio,
#temperature, #temperature {
#tray {
border-top: ${toString config.module.style.window.border}px solid transparent; border-top: ${toString config.module.style.window.border}px solid transparent;
border-bottom: ${toString config.module.style.window.border}px solid transparent; border-bottom: ${toString config.module.style.window.border}px solid transparent;
} }
@ -77,8 +72,7 @@ in {
#memory.critical, #memory.critical,
#pulseaudio.muted, #pulseaudio.muted,
#pulseaudio.source-muted, #pulseaudio.source-muted,
#temperature.critical, #temperature.critical {
#tray.needs-attention {
border-top: ${toString config.module.style.window.border}px solid #${config.module.style.color.accent}; border-top: ${toString config.module.style.window.border}px solid #${config.module.style.color.accent};
} }