waybar fixes

This commit is contained in:
2024-11-04 14:37:53 +01:00
parent 34e94621b8
commit 3b6cbf4398

View File

@@ -31,7 +31,7 @@
"tray" "tray"
]; ];
# Modules configuration # Modules configuration
# "sway/workspaces = { # sway/workspaces = {
# "disable-scroll = true, # "disable-scroll = true,
# "all-outputs = true, # "all-outputs = true,
# "warp-on-scroll = false, # "warp-on-scroll = false,
@@ -50,38 +50,38 @@
"hyprland/workspaces" = { "hyprland/workspaces" = {
active-only = false; active-only = false;
format = "{icon}"; format = "{icon}";
# format-icons = { format-icons = {
# 1 = "一"; "1" = "";
# 2 = "二"; "2" = "";
# 3 = "三"; "3" = "";
# 4 = "四"; "4" = "";
# 5 = "五"; "5" = "";
# 6 = "六"; "6" = "";
# 7 = "七"; "7" = "";
# 8 = "八"; "8" = "";
# 9 = "九"; "9" = "";
# 10 = "十"; "10" = "";
# 11 = "一"; "11" = "";
# 12 = "二"; "12" = "";
# 13 = "三"; "13" = "";
# 14 = "四"; "14" = "";
# 15 = "五"; "15" = "";
# 16 = "六"; "16" = "";
# 17 = "七"; "17" = "";
# 18 = "八"; "18" = "";
# 19 = "九"; "19" = "";
# 20 = "十"; "20" = "";
# 21 = "一"; "21" = "";
# 22 = "二"; "22" = "";
# 23 = "三"; "23" = "";
# 24 = "四"; "24" = "";
# 25 = "五"; "25" = "";
# 26 = "六"; "26" = "";
# 27 = "七"; "27" = "";
# 28 = "八"; "28" = "";
# 29 = "九"; "29" = "";
# 30 = "十"; "30" = "";
# }; };
on-scroll-up = "hyprctl dispatch workspace e+1"; on-scroll-up = "hyprctl dispatch workspace e+1";
on-scroll-down = "hyprctl dispatch workspace e-1"; on-scroll-down = "hyprctl dispatch workspace e-1";
persistent-workspaces = { persistent-workspaces = {
@@ -290,8 +290,8 @@
} }
window#waybar { window#waybar {
background-color: @background-hard-contrast; background-color: @surface;
color: @foreground; color: @text;
transition-property: background-color; transition-property: background-color;
transition-duration: 0.5s; transition-duration: 0.5s;
border-radius: 10px; border-radius: 10px;
@@ -321,8 +321,8 @@
#workspaces button { #workspaces button {
box-shadow: inset 0 -3px transparent; box-shadow: inset 0 -3px transparent;
padding: 0 8px; padding: 0 8px;
background-color: @background; background-color: @base;
color: @foreground; color: @text;
border: none; border: none;
border-radius: 0; border-radius: 0;
font-weight: 800; font-weight: 800;
@@ -339,36 +339,36 @@
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
#workspaces button:hover { #workspaces button:hover {
background: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.2);
background-color: @background-soft-contrast; background-color: @overlay;
/* box-shadow: inset 0 -100px 0 -97px @bright-yellow; */ /* box-shadow: inset 0 -100px 0 -97px @bright-yellow; */
} }
#workspaces button.empty { #workspaces button.empty {
color: @foreground-soft-contrast; color: @muted;
box-shadow: inherit; box-shadow: inherit;
text-shadow: inherit; text-shadow: inherit;
} }
#workspaces button.active { #workspaces button.active {
color: @yellow; color: @gold;
box-shadow: inset 0 -100px 0 -97px @bright-yellow; box-shadow: inset 0 -100px 0 -97px @bright-yellow;
text-shadow: inherit; text-shadow: inherit;
} }
#workspaces button.focused { #workspaces button.focused {
background-color: @background-soft-contrast; background-color: @overlay;
color: @foreground; color: @text;
/* box-shadow: inset 0 -100px 0 -97px @bright-yellow; */ /* box-shadow: inset 0 -100px 0 -97px @bright-yellow; */
} }
#workspaces button.urgent { #workspaces button.urgent {
background-color: @bright-red; background-color: @love;
color: @background; color: @base;
} }
#mode { #mode {
background-color: @background-soft-contrast; background-color: @overlay;
border-bottom: 3px solid @yellow; border-bottom: 3px solid @gold;
} }
#cava, #cava,
@@ -394,7 +394,7 @@
#scratchpad, #scratchpad,
#mpd { #mpd {
padding: 0 10px; padding: 0 10px;
color: @foreground; color: @text;
} }
#window, #window,
@@ -404,7 +404,7 @@
} }
.modules-right { .modules-right {
background-color: @background-soft-contrast; background-color: @overlay;
border-radius: 10px; border-radius: 10px;
} }
@@ -419,15 +419,15 @@
} }
#mpris { #mpris {
color: @yellow; color: @gold;
} }
#clock { #clock {
color: @yellow; color: @gold;
} }
#battery { #battery {
color: @blue; color: @foam;
} }
#battery.charging, #battery.charging,
@@ -470,20 +470,20 @@
} }
#cpu { #cpu {
color: @blue; color: @foam;
} }
#memory { #memory {
color: @magenta; color: @iris;
} }
#network { #network {
color: @blue; color: @foam;
} }
#network.disconnected { #network.disconnected {
background-color: @bright-red; background-color: @love;
color: @background; color: @base;
} }
/*#disk { /*#disk {
@@ -493,15 +493,15 @@
#pulseaudio, #pulseaudio,
#pulseaudio.muted, #pulseaudio.muted,
#pulseaudio.bluetooth { #pulseaudio.bluetooth {
color: @cyan; color: @pine;
} }
#tray { #tray {
} }
#tray > .needs-attention { #tray > .needs-attention {
background-color: @bright-red; background-color: @love;
color: @background; color: @base;
} }
#idle_inhibitor { #idle_inhibitor {