summaryrefslogtreecommitdiff
path: root/waybar/config.jsonc
blob: 77455d663ee1c440a6d22c8be0765c2d4d93e1d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// -*- mode: jsonc -*-
{
  "layer": "top",
  "position": "bottom",
  // "height": 48, // Waybar height (to be removed for auto height)
  // "width": 1280, // Waybar width
  "spacing": 0,
  "modules-left": [
    "river/tags",
    "river/layout",
    "river/window"
  ],
  "modules-center": [
  ],
  "modules-right": [
    "pulseaudio",
    "backlight",
    "network#vpn",
    "network#wifi",
    "temperature",
    "battery",
    "clock",
    "tray",
  ],
  "river/tags": {
    "num-tags": 8,
    "tag-labels": ["F", "U", "H", ".", "V", "L", "O", "M"]
  },
  "river/window": {
    "max-length": 48,
    "min-length": 48,
    "align": 0,
    "justify": "left",
  },
  "tray": {
    "icon-size": 32,
    "spacing": 10
  },
  "clock": {
    // "timezone": "America/New_York",
    "format": "{:%H:%M %Y/%m/%d}",
    "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
    "format-alt": "{:%Y-%m-%d}"
  },
  "temperature": {
    // "thermal-zone": 2,
    // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
    "critical-threshold": 80,
    // "format-critical": "{temperatureC}°C {icon}",
    "format": "⚙{temperatureC}°C",
  },
  "backlight": {
    // "device": "acpi_video1",
    "format": "{icon} {percent}%",
    "format-icons": ["", "", "", "", "", "", "", "", ""]
  },
  "battery": {
    "format": "{icon} {capacity}% ⏲{time}",
    "format-charging": "🔌{capacity}% ⏲{time}",
    "format-time": "{H}h{M}m",
    "format-icons": ["", "", "", "", ""]
  },
  "network#vpn": {
    "interface": "wg0-mullvad",
    "format-disconnected": "VPN ⚠",
    "format": "",
  },
  "network#wifi": {
    "interface": "wlp1s0",
    "format-wifi": " {essid}",
    "tooltip-format": "{ifname}: {ipaddr}/{cidr}",
  },
  "pulseaudio": {
    // "scroll-step": 1, // %, can be a float
    "format": "{volume}% {icon} {format_source} ",
    "format-bluetooth": "{volume}% {icon} {format_source}",
    "format-bluetooth-muted": " {icon} {format_source}",
    "format-muted": " {format_source}",
    "format-source": "",
    "format-source-muted": "",
    "format-icons": {
      "headphone": "",
      "hands-free": "",
      "headset": "",
      "phone": "",
      "portable": "",
      "car": "",
      "default": ["", "", ""]
    },
    "on-click": "pavucontrol"
  }
}