refactor
This commit is contained in:
parent
66c05f9093
commit
45d6f4b0f3
205 changed files with 9040 additions and 342 deletions
119
modules/nixos/desktop/addons/waybar/config
Normal file
119
modules/nixos/desktop/addons/waybar/config
Normal file
|
@ -0,0 +1,119 @@
|
|||
{
|
||||
"layer": "top",
|
||||
"modules-left": [
|
||||
"sway/workspaces",
|
||||
"custom/media",
|
||||
"sway/mode"
|
||||
],
|
||||
"modules-center": [],
|
||||
"modules-right": [
|
||||
"network",
|
||||
"pulseaudio",
|
||||
"cpu",
|
||||
"battery",
|
||||
"tray",
|
||||
"clock#date",
|
||||
"clock#time"
|
||||
],
|
||||
"sway/mode": {
|
||||
"format": "{}"
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon}",
|
||||
"return-type": "json",
|
||||
"format-icons": {
|
||||
"Playing": "",
|
||||
"Paused": "ﳌ"
|
||||
},
|
||||
"max-length": 70,
|
||||
"exec": "playerctl -a metadata --format '{\"text\": \"{{playerName}}\", \"tooltip\": \"{{playerName}}: {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
|
||||
"on-click": "playerctl play-pause"
|
||||
},
|
||||
"mpd": {
|
||||
"tooltip": false,
|
||||
"format": "{stateIcon} {artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})",
|
||||
"format-disconnected": "ﳌ",
|
||||
"format-stopped": "",
|
||||
"state-icons": {
|
||||
"playing": "",
|
||||
"paused": ""
|
||||
}
|
||||
},
|
||||
"pulseaudio": {
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{volume}%",
|
||||
"scroll-step": 5,
|
||||
"format": "{icon}",
|
||||
"format-bluetooth": "",
|
||||
"format-muted": "婢",
|
||||
"format-icons": {
|
||||
"default": [
|
||||
"奄",
|
||||
"奔",
|
||||
"墳"
|
||||
]
|
||||
},
|
||||
"on-click": "gnome-control-center sound"
|
||||
},
|
||||
"network": {
|
||||
"tooltip": true,
|
||||
"format-wifi": " ",
|
||||
"tooltip-format-wifi": "{essid} @ {signalStrength}%",
|
||||
"format-ethernet": "",
|
||||
"on-click": "gnome-control-center wifi"
|
||||
},
|
||||
"temperature": {
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{temperatureC} 糖",
|
||||
"critical-threshold": 70,
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"format": "{icon}"
|
||||
},
|
||||
"cpu": {
|
||||
"tooltip": true,
|
||||
"format": "",
|
||||
"states": {
|
||||
"heavy": 70,
|
||||
"full": 90
|
||||
}
|
||||
},
|
||||
"memory": {
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{used:0.1f}G/{total:0.1f}G",
|
||||
"format": "",
|
||||
"states": {
|
||||
"heavy": 70,
|
||||
"full": 90
|
||||
}
|
||||
},
|
||||
"battery": {
|
||||
"bat": "BAT1",
|
||||
"interval": 60,
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon}",
|
||||
"format-critical": "",
|
||||
"format-icons": {
|
||||
"default": ["", "", "", "", "", "", "", "", "", ""],
|
||||
"charging": ["", "", "", "", "", "", ""],
|
||||
"not": "",
|
||||
"plugged": ""
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"spacing": 10
|
||||
},
|
||||
"clock#date": {
|
||||
"format": "{:%a, %b %d}"
|
||||
},
|
||||
"clock#time": {
|
||||
"format": "{:%I:%M %p}"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue