all repos

dotfiles @ e87d923

i use rach linux btw

dotfiles/config/waybar/config (view raw)

1
// vim: ft=jsonc
2
{
3
    "position": "top",
4
    "layer": "top",
5
    "height": 14,
6
    "margin-top": 0,
7
    "margin-bottom": 0,
8
    "margin-left": 0,
9
    "margin-right": 0,
10
    "modules-left": [
11
        "hyprland/workspaces",
12
        "hyprland/window"
13
    ],
14
    "modules-center": [
15
        "clock",
16
        "cpu"
17
    ],
18
    "modules-right": [
19
        "memory",
20
        "tray",
21
        "hyprland/language",
22
        "backlight",
23
        "battery",
24
        "pulseaudio",
25
        "network"
26
    ],
27
28
    // modules
29
    "clock": {
30
        "format": "  {:%a, %d %b %H:%M}",
31
        "tooltip": "true",
32
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
33
        "format-alt": "  {:%d/%m}"
34
    },
35
36
    "hyprland/workspaces": {
37
        "active-only": false,
38
        "all-outputs": true,
39
        "disable-scroll": false,
40
        "on-scroll-up": "hyprctl dispatch workspace -1",
41
        "on-scroll-down": "hyprctl dispatch workspace +1",
42
        "format": "{icon}",
43
        "on-click": "activate",
44
        "sort-by-number": true,
45
        "persistent_workspaces": { "*": 9 },
46
        "format-icons": {
47
            "urgent": "",
48
            "default": "",
49
            "1": "󰅨",
50
            "2": "󰖟",
51
            "3": "",
52
            "4": "󰠮",
53
            "5": "",
54
            "6": "󰅨",
55
            "7": "󰎄"
56
        }
57
    },
58
59
    "hyprland/window": {
60
        "max-length": "40"
61
    },
62
63
    "battery": {
64
        "format":"{icon}  {capacity}%",
65
        "format-charging":"{icon}  {capacity}%",
66
        "format-plugged": "{capacity}%  ",
67
        "format-alt": "{icon}  {time}",
68
        "format-icons": ["", "", "", "", ""],
69
        "states": {
70
            "good": 95,
71
            "warning": 30,
72
            "critical": 15
73
        }
74
    },
75
76
    "memory": {
77
        "format": "󰍛  {used}%",
78
        "interval": 5
79
    },
80
81
    "cpu": {
82
        "format": "󰻠  {usage}%",
83
        "format-alt": "󰻠  {avg_frequency} GHz",
84
        "interval": 5
85
    },
86
87
    "network": {
88
        "format-wifi": "󰤨  {essid}",
89
        "format-linked": " {ifname} (No IP)",
90
        "format-disconnected": "󰤭",
91
        "format-alt": "󰤨 {ifname}: {ipaddr}/{cidr}",
92
        "tooltip-format": "{essid}",
93
        "on-click-right": "nm-connection-editor"
94
    },
95
96
    "tray": {
97
        "icon-size": 16,
98
        "spacing": 5
99
    },
100
101
    "backlight": {
102
        "format": "{icon}  {percent}%",
103
        "format-icons": ["", "", "", "", "", "", "", "", ""],
104
        "on-scroll-up": "brightnessctl set +10%",
105
        "on-scroll-down": "brightnessctl set 10%-"
106
    },
107
108
    "pulseaudio": {
109
        "format": "{icon}  {volume}%",
110
        "format-muted": "󰝟",
111
        "format-icons": {
112
            "default": ["󰕿", "󰖀", "󰕾"],
113
            "headphone": ""
114
        },
115
        "on-scroll-up": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+",
116
        "on-scroll-down": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-"
117
    },
118
119
    "hyprland/language": {
120
        "format": "󰌌  {}",
121
        "format-uk": "укр",
122
        "format-en": "eng"
123
    }
124
}