dotfiles/home/dot_config/waybar/config

131 lines
3.6 KiB
Plaintext
Raw Permalink Normal View History

2024-06-25 16:25:23 +00:00
// vim: set ft=jsonc :
2023-02-25 16:18:35 +00:00
{
2024-06-25 16:25:23 +00:00
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
2023-04-26 06:01:54 +00:00
// "height": 30, // Waybar height (to be removed for auto height)
"margin": "3 3 0 3",
2023-02-25 16:18:35 +00:00
// "width": 1280, // Waybar width
2023-04-26 06:01:54 +00:00
// "spacing": 1, // Gaps between modules (4px)
2023-02-25 16:18:35 +00:00
// Choose the order of the modules
2023-05-29 17:26:05 +00:00
// "modules-left": ["wlr/workspaces", "custom/sep", "hyprland/window", "hyprland/submap"],
"modules-left": ["sway/workspaces", "custom/sep", "sway/window", "sway/mode"],
2023-04-26 06:01:54 +00:00
"modules-center": ["clock"],
2023-02-25 16:18:35 +00:00
"modules-right": [
"idle_inhibitor",
"custom/sep",
"network",
"custom/sep",
2024-06-25 16:25:23 +00:00
"bluetooth",
"custom/sep",
2023-04-26 06:01:54 +00:00
"custom/pipewire",
2023-02-25 16:18:35 +00:00
"cpu",
"memory",
"backlight",
"battery",
"custom/sep",
"tray"
],
// Modules configuration
"custom/sep": {
"format": "|",
"interval": "once",
"tooltip": false
},
2023-04-16 17:53:49 +00:00
"wlr/workspaces": {
"format": "{name}",
2024-03-05 15:36:54 +00:00
// "on-click": "activate",
2023-04-26 06:01:54 +00:00
"disable-scroll": true
2023-04-16 17:53:49 +00:00
},
2023-05-29 17:26:05 +00:00
"sway/window": {
"max-length": 100
},
2023-02-25 16:18:35 +00:00
"custom/pipewire": {
"exec": "/home/jay/bin/get-volume.sh",
2024-06-25 16:25:23 +00:00
"interval": 2,
2023-02-25 16:18:35 +00:00
"return-type": "json",
"signal": 8,
"format": "{icon} {percentage}%",
"format-icons": {
"mute": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
2023-04-26 06:01:54 +00:00
"hyprland/window": {
"max-length": 30
},
"hyprland/submap": {
"format": "{}",
"tooltip": false
},
2023-02-25 16:18:35 +00:00
"idle_inhibitor": {
2024-06-25 16:25:23 +00:00
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
2023-02-25 16:18:35 +00:00
},
"tray": {
// "icon-size": 21,
"spacing": 10,
"show-passive-items": true
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
2023-04-26 06:01:54 +00:00
"format": "{:%Y-%m-%d %H:%M:%S %a}",
2023-02-25 16:18:35 +00:00
"format-alt": "{:%Y-%m-%d}",
"interval": 1
},
"cpu": {
2024-06-25 16:25:23 +00:00
"format": " {usage}%({load})",
"interval": 2,
"tooltip": false
2023-02-25 16:18:35 +00:00
},
"memory": {
"interval": 10,
2023-04-26 06:01:54 +00:00
"format": " {used}G",
2023-02-25 16:18:35 +00:00
"tooltip-format": "{percentage}% used"
},
"temperature": {
// "thermal-zone": 2,
2023-04-16 17:53:49 +00:00
"hwmon-path": "/sys/class/hwmon/hwmon4/temp1_input",
2023-02-25 16:18:35 +00:00
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": " {temperatureC}°C",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{icon} {percent}%",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"battery": {
2024-06-25 16:25:23 +00:00
"states": {
2023-02-25 16:18:35 +00:00
// "good": 95,
"warning": 30,
"critical": 15
2024-06-25 16:25:23 +00:00
},
"format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{icon} {time}",
2023-02-25 16:18:35 +00:00
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
2024-06-25 16:25:23 +00:00
"bat": "BAT2"
2023-02-25 16:18:35 +00:00
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
2023-04-26 06:01:54 +00:00
}
2023-02-25 16:18:35 +00:00
}