Files
aglab.dotfiles/.config/waybar/config.jsonc
SilverAg.L a1a0c2bdb6 重写 startb;补点中文注释;删减多余的定时模板
为啥又中文了?英文太长,中英夹杂键起来别扭。

不会真有人用我原始人般的配置吧?
2026-03-24 03:08:10 +08:00

104 lines
2.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"layer": "top",
"modules-left": [
"niri/workspaces",
"niri/window"
// 我参考的那两人还用 sway甚至大杂烩。而我只知道 niri甚至一度也不想知道不习惯
],
"modules-center": [
"clock"
],
"modules-right": [
"mpris",
"tray",
"battery",
"cpu",
"memory",
"temperature",
"pulseaudio"
],
"sway/scratchpad": {
"format": "󱂬 {count}"
},
"pulseaudio": {
"format": " {volume}%",
"format-muted": "x {volume}%",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"on-click-right": "pavucontrol-qt"
},
"niri/workspaces": {
"format": "{index}"
},
"niri/window": {
"format": "{}",
"icon": true,
"max-length": 40,
"icon-size": 14,
"rewrite": {
"(.*) — Mozilla Firefox": "$1",
"(.*) - Google Chrome": "$1",
"(.*) - Visual Studio Code": "$1",
"(.*) - VLC media player": "$1",
"Yazi: (.*)": "$1"
}
},
// 这玩意说实话没想象中那么好用,但移植雪叶那个脚本,效果甚至还没这个好。
"mpris": {
"format": "{status_icon} {title}",
"format-stopped": "",
"max-length": 40,
"status-icons": {
"paused": "",
"playing": "󰐊"
},
"interval": "3"
},
"clock": {
"format": "{:%d %b %H:%M}",
"interval": 1,
"tooltip-format": "{:%A %d %B %Y}"
},
"tray": {
"spacing": 12
},
// 忘记用哪个工具确定设备节点了。实在不行终端开 yazi 来回翻。
"temperature": {
// "thermal-zone": 1,
"hwmon-path-abs": "/sys/devices/platform/coretemp.0/hwmon",
"input-filename": "temp1_input",
"critical-threshold": 90,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{icon} {temperatureC}°C",
"format-icons": [
"",
"",
""
]
},
"memory": {
"format": " {percentage}%",
"interval": 5
},
"cpu": {
"format": " {usage}%",
"interval": 2
},
"battery": {
"format": "{icon} {capacity}%",
"format-charging": "{icon} {capacity}% ",
"format-icons": [
"󰁺",
"󰁻",
"󰁼",
"󰁽",
"󰁾",
"󰁿",
"󰂀",
"󰂁",
"󰂂",
"󰁹"
],
"interval": 1
}
}