~yerinalexey/dotfiles

ref: 144a38b0aa0a39003633d53b77fe4e3ca29c054b dotfiles/waybar/config -rw-r--r-- 2.5 KiB
144a38b0Alexey Yerin river,update-volume: fix old wob crashes 6 months ago
                                                                                
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
93
94
95
96
97
98
99
100
101
102
103
{
  "layer": "top", // Waybar at top layer
  "height": 30, // Waybar height (to be removed for auto height)

  // Modules order
  "modules-left": ["river/tags"],
  "modules-center": [],
  "modules-right": [
    "idle_inhibitor",
    "custom/xkb_layout",
    "pulseaudio",
    "network",
    "cpu",
    "memory",
    "clock",
    "tray"
  ],

  // Modules configuration
  "idle_inhibitor": {
    "format": "{icon}",
    "format-icons": {
      "activated": "",
      "deactivated": ""
    },
    "tooltip": false
  },
  "tray": {
    "icon-size": 16,
    "spacing": 10
  },
  "clock": {
    "tooltip-format": "<big>{:%e %B}</big>\n<tt><small>{calendar}</small></tt>",
    "format": "{:%H:%M %Y-%m-%d}"
  },
  "cpu": {
    "format": " {usage}%",
    "on-click": "$TERMINAL -e btm",
    "tooltip": false
  },
  "memory": {
    "format": " {}%",
    "on-click": "$TERMINAL -e btm"
  },
  "battery": {
    "states": {
      // "good": 95,
      "warning": 30,
      "critical": 15
    },
    "format": "{icon}  {capacity}%",
    "format-charging": "{capacity}% ",
    "format-plugged": "{capacity}% ",
    "format-alt": "{time} {icon}",
    // "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}",
    "format-linked": "爵 {ifname} (No IP)",
    "format-disconnected": "🚫 Disconnected",
    "tooltip": false
  },
  "pulseaudio": {
    // "scroll-step": 1, // %, can be a float
    "format": "{icon} {volume}%",
    "format-bluetooth": "{volume}% {icon} {format_source}",
    "format-bluetooth-muted": " {icon} {format_source}",
    "format-muted": "  muted",
    "format-source": "{volume}% ",
    "format-source-muted": "",
    "format-icons": {
      "headphone": "",
      "hands-free": "",
      "headset": "",
      "phone": "",
      "portable": "",
      "car": "",
      "default": ["", "", ""]
    },
    "on-click": "$TERMINAL -e pulsemixer",
    "tooltip": false
  },
  "custom/xkb_layout": {
    "format": "  {}",
    "exec": "~/.config/scripts/waybar/xkb-layout",
    "tooltip": false
  },
  "custom/weather": {
    "format": "{}",
    "exec": "~/.config/scripts/waybar/weather",
    "interval": 2400,
    "tooltip": false
  }
}

// vim:ft=jsonc