summaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.config/waybar/config
blob: 422096f33a7a23d37c9233bad1470189ab7ae148 (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
{
    "layer": "top",
    "position": "top",
    "spacing": 4,
    "margin-top": 6,
    "margin-left": 10,
    "margin-right": 10,

    "modules-left": [
        "hyprland/workspaces",
        "custom/layout",
        "hyprland/window"
    ],
    "modules-center": [],
    "modules-right": [
        "group/sysmonitor",
        "custom/netspeed",
        "pulseaudio",
        "idle_inhibitor",
        "tray",
        "clock"
    ],

    "group/sysmonitor": {
        "orientation": "horizontal",
        "swap-icon-label": false,
        "modules": [
            "cpu",
            "temperature",
            "memory",
            "custom/disk",
            "battery"
        ]
    },

    "hyprland/workspaces": {
        "disable-scroll": true,
        "all-outputs": true,
        "format": "{name}",
        "sort-by-number": true
    },

    "custom/layout": {
        "exec": "waybar-layout",
        "return-type": "json",
        "interval": 1,
        "on-click": "cycle-layout"
    },

    "hyprland/window": {
        "max-length": 50,
        "separate-outputs": true
    },

    "cpu": {
        "interval": 10,
        "format": "<span size='large'>󰍛</span> {}%",
        "on-click": "pypr toggle monitor"
    },

    "temperature": {
        "interval": 10,
        "hwmon-path-abs": "/sys/devices/pci0000:00/0000:00:18.3/hwmon",
        "input-filename": "temp1_input",
        "warning-threshold": 80,
        "critical-threshold": 80,
        "format": "<span size='large'>󰔏</span> {temperatureC}°C",
        "format-critical": "<span size='large'>󰸁</span> {temperatureC}°C",
        "on-click": "pypr toggle monitor"
    },

    "memory": {
        "interval": 30,
        "format": "<span size='large'>󰘚</span> {}%",
        "on-click": "pypr toggle monitor"
    },

    "custom/disk": {
        "exec": "waybar-disk",
        "return-type": "json",
        "interval": 30,
        "format": "<span size='large'>󰆼</span> {}",
        "on-click": "pypr toggle monitor"
    },

    "custom/netspeed": {
        "exec": "waybar-netspeed",
        "return-type": "json",
        "interval": 2,
        "on-click": "pypr toggle network"
    },

    "battery": {
        "interval": 30,
        "states": {
            "warning": 30,
            "critical": 15
        },
        "format": "<span size='large'>{icon}</span> {capacity}%",
        "format-charging": "<span size='large'>󰂄</span> {capacity}%",
        "format-plugged": "<span size='large'>󰚥</span> {capacity}%",
        "format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
        "tooltip-format": "{timeTo}"
    },

    "tray": {
        "icon-size": 22,
        "spacing": 4
    },

    "clock": {
        "format": "{:%a, %b %d %Y %I:%M %p %Z}",
        "tooltip-format": "<small>{calendar}</small>",
        "calendar": {
            "format": {
                "today": "<span color='#daa520'><b><u>{}</u></b></span>"
            }
        }
    },

    "pulseaudio": {
        "format": "<span size='large'>{icon}</span> {volume}%",
        "format-muted": "<span size='large'>󰝟</span> Muted",
        "format-icons": {"default": ["󰕿", "󰖀", "󰕾"]},
        "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
        "on-click-right": "pypr toggle audio",
        "on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +5%",
        "on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -5%"
    },

    "idle_inhibitor": {
        "format": "<span size='large'>{icon}</span>",
        "format-icons": {
            "activated": "󰅶",
            "deactivated": "󰾪"
        },
        "tooltip-format-activated": "Idle inhibitor: ON (screen will not lock)",
        "tooltip-format-deactivated": "Idle inhibitor: OFF"
    }
}