summaryrefslogtreecommitdiff
path: root/waybar/config.jsonc
blob: 1ec08eb077ba0a1e54769500d9c6b8f5d67e0ea5 (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
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
{
  "layer": "top",
  "position": "top",
  "modules-left": [
    "clock",
    // "memory",
    // "cpu",
    // "temperature",
    "hyprland/workspaces",
    // "niri/window",
    "hyprland/window"
    ],
    "modules-right": [
      "mpd",
      "tray",
      "backlight",
      "pulseaudio",
      "battery"
    ],

    "mpd": {
      "format": "{stateIcon} {title}",
      "format-disconnected": "Disconnected",
      "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped",
      "state-icons": {
        "paused": "",
        "playing": ""
      },
      "tooltip-format": "{title}\nBy: {artist}\nFrom: {album}\n({elapsedTime:%M:%S}/{totalTime:%M:%S})\nVol. {volume}%",
      "tooltip-format-disconnected": "MPD (disconnected)",
      "on-click": "rmpc togglepause",
      "on-click-right": "rmpc next",
      "on-scroll-up": "rmpc volume +5",
      "on-scroll-down": "rmpc volume -5"
    },

    "reload_style_on_change":true,

    "hyprland/workspaces": {
      "format": "{icon}",
      "format-icons": {
        "1":  "",
        "2":  "",
        "3":  "󰊪",
        "4":  "४",
        "5":  "५",
        "6":  "६",
        "7":  "७",
        "8":  "८",
        "9":  "९",
        "10": "१०",
        "default": "" 
      },
      "persistent-workspaces": {
        "*": [ 1, 2, 3 ]
      }
    },

    "clock": {
      "format": "{:%I:%M %p %d/%m/%y}",
      "interval":1,
      "on-click": "notify-send \"$(date)\""
    },

    "battery": {
      "interval":1,
      "states": {
        "good": 95,
        "warning": 30,
        "critical": 20
      },
      "format": "{capacity}%  {icon} ",
      "format-charging": "{capacity}% C",
      "format-plugged": "{capacity}% C P",
      "on-click": "notify-send \"$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage;upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep \"time\")\""
    },

    "backlight": {
      "device": "intel_backlight",
      "format": "<span font='12'>{icon}</span>",
      "format-icons": [
        "0",
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
        "9"
      ],
      "on-scroll-down": "brillo -A 10",
      "on-scroll-up": "brillo -U 10",
      "smooth-scrolling-threshold": 1
    },

    "cpu": {
      "interval": 1,
      "format": "C {usage}%",
      "min-length": 6,
      "max-length": 6
    },

    "memory": {
      "format": "M {percentage}%"
    },

    "temperature": {
      "format": "T {temperatureC}°C",            
      "format-critical": "T {temperatureC}°C",
      "interval": 1,
      "critical-threshold": 80,
      "on-click": "kitty btop"
    },

    "pulseaudio": {
      "format": "{volume}% {icon}",
      "format-muted": "<span font='12'>M</span>",
      "format-icons": {
        "default": [""]
      },
      "justify": "center",
      "on-click": "amixer sset Master toggle",
      "on-click-right": "pavucontrol",
      "tooltip-format": "{icon}  {volume}%"
    },

    "tray": {
      "icon-size": 14,
      "spacing": 10
    },

    "upower": {
      "show-icon": false,
      "hide-if-empty": true,
      "tooltip": true,
      "tooltip-spacing": 20
    }
}