dotfiles/.config/waybar/config.cgt

84 lines
2.6 KiB
Text
Raw Normal View History

2023-08-26 16:31:51 +02:00
// vim: ft=jsonc
2022-12-11 23:53:37 +01:00
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
2023-08-27 17:01:31 +02:00
"height": 16, // Waybar height (to be removed for auto height)
2022-12-11 23:53:37 +01:00
// "width": 1280, // Waybar width
"spacing": 4, // Gaps between modules (4px)
2023-08-26 16:31:51 +02:00
2023-08-27 17:01:31 +02:00
"layer": "top",
2023-08-26 16:31:51 +02:00
//<! if opt.wayland_compositor == "river" then !>
2022-12-11 23:53:37 +01:00
"modules-left": ["river/tags"],
"modules-center": ["river/window"],
2023-08-26 16:31:51 +02:00
//<! elseif opt.wayland_compositor == "hyprland" then !>
2023-08-27 17:01:31 +02:00
"modules-left": ["hyprland/workspaces", "hyprland/window"],
2023-08-26 16:31:51 +02:00
//<! end !>
2022-12-11 23:53:37 +01:00
"modules-right": ["cpu", "memory", "pulseaudio", "temperature", "battery", "battery#bat2", "clock", "tray"],
2023-08-27 17:01:31 +02:00
"hyprland/workspaces": {},
2022-12-11 23:53:37 +01:00
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
2023-08-27 19:46:01 +02:00
"hwmon-path": "<% opt.cpu_temp_hwmon %>",
2022-12-11 23:53:37 +01:00
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
2023-08-27 18:30:04 +02:00
"format-icons": ["", "", ""]
2022-12-11 23:53:37 +01:00
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
2023-08-27 18:30:04 +02:00
"format-charging": "{capacity}% 󰂄",
2022-12-11 23:53:37 +01:00
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
2023-08-27 18:30:04 +02:00
"format-bluetooth-muted": "󰝟 {icon} {format_source}",
"format-muted": "󰝟 {format_source}",
2022-12-11 23:53:37 +01:00
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
}