Changed waybar config on desktop

This commit is contained in:
2026-02-15 14:51:16 +08:00
parent 86495e561a
commit 740297097b
5 changed files with 84 additions and 12 deletions

View File

@@ -0,0 +1,39 @@
{
"layer": "bottom",
"position": "bottom",
"height": 20,
"modules-left": ["sway/workspaces"],
"modules-right": ["mpris", "pulseaudio", "temperature", "memory", "cpu", "clock", "tray"],
"sway/workspaces": { "disable-scroll": true },
"clock": { "format": "{:%a %d %b %H:%M:%S}", "interval": 1, "tooltip": false },
"mpris": {
"player": "spotify",
"format": " {title} — {artist} | ",
"title-len": 30,
"artist-len": 20,
"ellipsis": true,
"interval": 2
},
"temperature": {
"format": " | {temperatureC}°C | ",
"critical-threshold": 80,
"interval": 5,
"tooltip": false
/* If it shows 0°C, set one of these explicitly:
"thermal-zone": 0,
or
"hwmon-path": "/sys/class/hwmon/hwmon0/temp1_input"
*/
},
"memory": { "format": "{percentage}% | ", "interval": 5, "tooltip": false },
"cpu": { "format": "{usage}% | ", "interval": 2, "tooltip": false },
"tray": { "spacing": 7 }
}

View File

@@ -0,0 +1,40 @@
* {
font-family: "Hack Nerd Font";
font-size: 11px;
min-height: 0;
}
window#waybar {
background: #141415; /* $b00 */
color: #cdcdcd; /* $b05-ish default text */
}
/* Workspaces: try to mimic your focused_workspace colors */
#workspaces button {
padding: 0 8px;
margin: 0;
border-radius: 0;
border: 0;
background: transparent;
color: #c3c3d5; /* $b04 */
}
#workspaces button.focused {
background: #1c1c24; /* $b01 */
color: #cdcdcd; /* $b05 */
}
#workspaces button.urgent {
background: #d8647e; /* $red */
color: #141415; /* $b00 */
}
/* Right side modules */
#tray {
padding: 0 8px;
}
#custom-ministatus {
padding: 0 8px;
color: #cdcdcd; /* $b05 */
}