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,4 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:4300
SETUVAR fish_greeting:\x1d

View File

@@ -42,9 +42,7 @@ bar {
colors { colors {
focused_workspace $b01 $b01 $b05 focused_workspace $b01 $b01 $b05
} }
font pango:Hack Nerd Font 10 swaybar_command waybar
position bottom
status_command ~/.config/sway/status.sh
} }
input type:keyboard { input type:keyboard {

View File

@@ -1,9 +0,0 @@
#!/bin/sh
while :; do
temp=$(awk '{printf "%d", $1/1000}' /sys/class/thermal/thermal_zone0/temp 2>/dev/null || echo n/a)
datetime=$(date +'%a %d %b %T')
echo " ${temp}C | ${datetime}"
sleep 1
done

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 */
}