nix/module/desktop/waybar/config/default.nix

93 lines
2.1 KiB
Nix
Raw Normal View History

2024-05-04 09:23:33 +03:00
{ setting, ... }: {
2024-05-02 04:47:21 +03:00
text = ''
// -*- mode: jsonc -*-
{
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
"spacing": 4, // Gaps between modules (4px)
2024-05-02 12:59:31 +03:00
// "mode": "dock",
"exclusive": false,
2024-05-02 04:47:21 +03:00
"start_hidden": true,
"modules-left": [
"sway/workspaces",
"sway/scratchpad",
],
2024-05-04 09:23:33 +03:00
"modules-center": [
"clock",
"mpris"
],
2024-05-02 04:47:21 +03:00
"modules-right": [
"sway/language",
"pulseaudio",
"battery",
2024-05-04 09:23:33 +03:00
"cpu",
"temperature",
"memory",
2024-05-02 04:47:21 +03:00
"tray"
],
"sway/scratchpad": {
2024-05-04 09:23:33 +03:00
"format": "{icon} {count}",
2024-05-02 04:47:21 +03:00
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big><tt>{calendar}</tt></big>",
"format-alt": "{:%d %a %H:%M}"
},
"battery": {
"states": {
"good": 60,
"warning": 40,
"critical": 20
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["󰂎", "󱊡", "󱊢", "󱊣", "󱊣"]
},
"pulseaudio": {
2024-05-04 09:23:33 +03:00
"scroll-step": ${toString(setting.volume.step)},
2024-05-02 04:47:21 +03:00
"format": "{volume}% {icon}",
"format-muted": "󰸈",
"format-icons": {
"default": ["", "", ""]
},
"on-click": "pavucontrol"
2024-05-04 09:23:33 +03:00
},
"mpris": {
"format": "{player_icon} {artist} - {title}",
"format-paused": "{status_icon} {artist} - {title}",
"player-icons": {
"default": "",
"firefox": "󰈹",
"mpv": ""
},
"status-icons": {
"paused": ""
},
// "ignored-players": ["firefox"]
},
"cpu": {
"format": "{usage}% {load}",
"tooltip": false
},
"memory": {
"format": "{percentage}%"
},
"temperature": {
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
"format": "{temperatureC}°C",
2024-05-02 04:47:21 +03:00
}
}
'';
}