~yerinalexey/dotfiles

ref: f744d313447ae77c32df10ee7378ffbd597328c2 dotfiles/waybar/config -rw-r--r-- 3.6 KiB
f744d313Alexey Yerin waybar: disable tooltip for network 9 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
  "layer": "top", // Waybar at top layer
  "height": 30, // Waybar height (to be removed for auto height)

  // Modules order
  "modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
  "modules-center": [],
  "modules-right": [
    "idle_inhibitor",
    "custom/xkb_layout",
    "pulseaudio",
    "network",
    "cpu",
    "memory",
    "custom/weather",
    "clock",
    "tray"
  ],

  // Modules configuration
  "sway/window": {
    "tooltip": false
  },
  // "sway/workspaces": {
  //   "disable-scroll": true,
  //   "all-outputs": true,
  //   "format": "{name}: {icon}",
  //   "format-icons": {
  //     "1": "",
  //     "2": "",
  //     "3": "",
  //     "4": "",
  //     "5": "",
  //     "urgent": "",
  //     "focused": "",
  //     "default": ""
  //   }
  // },
  "sway/mode": {
    "format": "<span style=\"italic\">{}</span>"
  },
  "mpd": {
    "format": "   {stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} {artist} - {title}",
    "format-disconnected": "   Disconnected",
    "format-stopped": "   {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} Stopped",
    "unknown-tag": "N/A",
    "interval": 2,
    "consume-icons": {
      "on": "  "
    },
    "random-icons": {
      "on": "  "
    },
    "repeat-icons": {
      "on": "  "
    },
    "single-icons": {
      "on": " 1 "
    },
    "state-icons": {
      "paused": " ",
      "playing": " "
    },
    "tooltip": false
  },
  "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-alt": "{:%d.%m %Y}"
  },
  "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