begin
echo '* {
font-family: "Noto Sans", sans-serif;
font-size: 12px;
border: none;
border-radius: 0;
min-height: 0;
}
window#waybar {
background: rgba(8, 8, 8, 0.96);
color: #eeeeee;
border-bottom: 2px solid #b51232;
}
#workspaces button {
color: #888888;
padding: 0 12px;
background: transparent;
}
#workspaces button.active {
color: #ff2448;
border-bottom: 2px solid #ff2448;
}
#clock {
color: #ff2448;
font-weight: bold;
}
#cpu, #memory, #pulseaudio, #network, #tray {
padding: 0 10px;
color: #eeeeee;
}
#pulseaudio {
color: #ff2448;
}
#window {
color: #aaaaaa;
}
tooltip {
background: #101010;
border: 1px solid #b51232;
color: #ffffff;
}' > ~/.config/waybar/style.css
end
begin
echo '{
"layer": "top",
"position": "top",
"height": 38,
"spacing": 8,
"modules-left": ["hyprland/workspaces", "hyprland/window"],
"modules-center": ["clock"],
"modules-right": ["cpu", "memory", "pulseaudio", "network", "tray"],
"hyprland/workspaces": {
"format": "{name}",
"on-click": "activate",
"sort-by-number": true
},
"hyprland/window": {
"format": " {title}",
"max-length": 40
},
"clock": {
"format": "赤 {:%H:%M | %d.%m.%Y}",
"tooltip": false
},
"cpu": {
"format": "CPU {usage}%"
},
"memory": {
"format": "RAM {}%"
},
"pulseaudio": {
"format": "VOL {volume}%",
"format-muted": "MUTE",
"on-click": "pavucontrol-qt"
},
"network": {
"format-wifi": "WIFI",
"format-ethernet": "LAN",
"format-disconnected": "OFF"
},
"tray": {
"spacing": 10
}
}' > ~/.config/waybar/config.jsonc
end
python -m json.tool ~/.config/waybar/config.jsonc