用 Noctalia Shell 替代各种琐碎组件
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user