summaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.config/waybar/config
blob: c7cc0a787f2a60ef69f8c34dcc192078cb2dd59c (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
{
    "layer": "top",
    "position": "top",
    "height": 30,
    "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",
        "wireplumber",
        "tray",
        "clock"
    ],

    "group/sysmonitor": {
        "orientation": "horizontal",
        "modules": [
            "cpu",
            "temperature",
            "memory",
            "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": "toggle-scratchpad monitor"
    },

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

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

    "disk": {
        "interval": 30,
        "format": "<span size='large'>󰆼</span> {percentage_used}%",
        "path": "/",
        "on-click": "toggle-scratchpad monitor"
    },

    "custom/netspeed": {
        "exec": "waybar-netspeed",
        "return-type": "json",
        "interval": 2,
        "on-click": "toggle-scratchpad 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": 10
    },

    "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>"
            }
        }
    },

    "wireplumber": {
        "format": "<span size='large'>󰕾</span> {volume}%",
        "format-muted": "<span size='large'>󰝟</span> Muted",
        "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
        "on-click-right": "toggle-scratchpad audio",
        "on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+",
        "on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
    }
}