dotfiles/home/dot_config/waybar/config

126 lines
3.6 KiB
Plaintext
Raw Normal View History

2023-02-25 16:18:35 +00:00
// vim: set ft=jsonc:
{
2023-04-18 16:29:36 +00:00
"layer": "top", // Waybar at top layer
2023-02-25 16:18:35 +00:00
"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-04-26 06:01:54 +00:00
"modules-left": ["wlr/workspaces", "custom/sep", "hyprland/window", "hyprland/submap"],
2023-04-16 17:53:49 +00:00
// "modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
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",
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}",
2023-04-18 16:29:36 +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-02-25 16:18:35 +00:00
"custom/pipewire": {
"exec": "/home/jay/bin/get-volume.sh",
"interval": "once",
"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": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"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": {
"format": " {usage}%({load})",
"interval": 2,
"tooltip": false
},
"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": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
2023-05-07 02:19:41 +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": {
"bat": "BAT2"
},
"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
}