~whynothugo/dotfiles

dotfiles/home/.config/waybar/config.jsonc -rw-r--r-- 2.6 KiB
a059c69fHugo Osvaldo Barrera docker: Drop obsolete configuration a day 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
{
  "layer": "top",
  "position": "bottom",
  "height": 26,
  // Choose the order of the modules
  "modules-left": [
    "sway/workspaces",
    "sway/mode",
    "custom/mic",
    "custom/yubikey",
    "custom/services",
    "sway/window"
  ],
  "modules-center": [],
  "modules-right": ["custom/khal", "battery", "pulseaudio", "tray", "clock"],
  // Modules configuration
  "sway/workspaces": {
    "disable-scroll": false,
    "disable-scroll-wraparound": true,
    "enable-bar-scroll": true,
    "all-outputs": false,
    "format": "{name} {icon}",
    "format-icons": {
      "focused": "",
      "default": ""
    }
  },
  "custom/mic": {
    "exec": "$HOME/.local/lib/waybar-mic",
    "return-type": "json",
    "on-click": "pactl set-source-mute $(pactl get-default-source) toggle"
  },
  "custom/yubikey": {
    "exec": "$HOME/.local/lib/waybar-yubikey",
    "return-type": "json"
  },
  "custom/services": {
    "interval": 10,
    "exec": "$HOME/.local/lib/waybar-services",
    "on-click": "pause status"
  },
  "sway/mode": {
    "format": "<span style=\"italic\">{}</span>"
  },
  "sway/window": {
    "icon": false,
    "tooltip": false
  },
  "custom/khal": {
    "exec": "$HOME/.local/lib/waybar-khal",
    "return-type": "json",
    "on-click": "pause khal list now 24h"
  },
  "clock": {
    "interval": 1,
    "tooltip-format": "<big>{:%Y %B}</big>\n<tt>{calendar}</tt>",
    "format": "{:%a %Y-%m-%d %X}"
  },
  "battery": {
    "states": {
      // Results in "format-full" being used.
      "full": 100,
      // Applies a CSS animation/alert.
      "critical": 15
    },
    "format": "{icon} {capacity}%",
    "format-charging": " {capacity}%",
    // Plugged icon: ﮣ (doesn't render properly on my setup!?)
    "format-plugged": " {capacity}%",
    "format-alt": "{icon} {power}W {time}", // Toggled on click.
    "format-full": "{icon}",
    "format-icons": ["", "", "", "", "", "", "", "", "", ""]
    // More icons in this range:   -> 
    // More icons in this range:   -> 
    // More icons in this range:   -> 
  },
  "pulseaudio": {
    // "scroll-step": 1, // %, can be a float
    "format": "{volume}% {icon}",
    "format-bluetooth": "{icon} {volume}% ",
    "format-bluetooth-muted": " ",
    "format-muted": "",
    "format-icons": {
      "speaker": "💻",
      "headphone": "",
      "hands-free": "",
      "headset": "",
      "phone": "",
      "portable": "",
      "car": "",
      "default": ["", "", ""]
    },
    "on-click": "pavucontrol",
    "on-click-right": "blueman-manager"
  }
}