aboutsummaryrefslogtreecommitdiff
path: root/src/.config/waybar/config
blob: 586f7c24569d9b5dca80d22b681b67979511c499 (plain) (blame)
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
{
    "layer": "top", // Waybar at top layer
    "position": "top", // Waybar position (top|bottom|left|right)
    "height":30 ,// Waybar height (to be removed for auto height)
    "margin": 0, 
    //"width": 1920, // Waybar width
    "spacing": 5,
    "fixed-center": true, 
    // Choose the order of the modules
    "modules-left": ["wlr/workspaces",],
    "modules-right": ["memory","pulseaudio", "clock"],
    "modules-center": ["hyprland/window"],

    "wlr/workspaces": {
      "format": "{icon}",
      "on-click": "activate",
      "active-only": false,
    "all-outputs": true,
      "format-icons": {
        "1": "",
        "2": "",
        "3": "",
        "4": "",
        "5": "",
      },
    },
        "hyprland/window": {
        "format": "{}",
        "separate-outputs": true
    },
    "tray": {
        "icon-size": 21,
        "spacing": 4,
        "show-passive-items": true,
        "max-length": 6,
        "min-length": 6,
    },
    "clock": {
        "tooltip": false,
        "interval": 60,
        "format": "{:%d %b, %I:%M %p}",
        "max-length": 25,
        "on-click": "alacritty  --class calendar -e calcure"},
    "cpu": {
        "interval":1,
        "format":"{icon0}{icon1}{icon2}{icon3}",
        "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
        "on-click": "alacritty --class system_monitor -e btop",
        "max-lenght": 25,
        "min-length":6,
    },
    "memory": {
        "format": "<span color=\"#458588\"> </span>{used}GiB",
        "interval": 1,
        "on-click": "alacritty --class system_monitor -e btop",
        "max-lenght": 25,
        "min-length":6,
    },
    "backlight": {
        // "device": "acpi_video1",
        "format": "{icon}{percent}%",
        "format-icons": [" ", " ", " ", " ", " ", " ", " ", " ", " "],
        "on-scroll-up":"brightnessctl set 30+",
        "on-scroll-down":"brightnessctl set 30-",
        "max-lenght": 25,
        "min-length":6,
    },
    "battery": {
        "states": {
            "full":100,
            "warning": 50,
            "critical": 20
        },
        "interval":60,
        "format": "{icon} {capacity}%",
        "format-icons": ["", "", "", "", ""]
    },
    "network": {
         "interface": "enp6s0",
        "format-wifi":  " ",
        "format-disconnected": "  睊  ",
        "tooltip-format": "{ifname} via {gwaddr} ",
        "tooltip-format-wifi": "{essid} {signalStrength}%",
        "on-click": "alacritty --class network -e nmtui"
    },
    "pulseaudio": {
    "format": "<span color=\"#458588\"> </span>{volume}%",
    "format-muted": "<span color=\"#cc241d\"> </span>Muted",
    "scroll-step": 1,
    "on-click-right": "pavucontrol",
    "ignored-sinks": ["Easy Effects Sink"],
    "max-lenght": 25,
    "exec":"pactl --format=json list sinks | jq -cM --unbuffered \"map(select(.name == \\\"$(pactl get-default-sink)\\\"))[0].properties | [.\\\"media.name\\\",.\\\"alsa.name\\\",.\\\"node.nick\\\",.\\\"alsa.long_card_name\\\"] | map(select(length>0))[0] | {text:.}\"",
    "exec-if": "sleep 0.1", // Give enough time for `pactl get-default-sink` to update
    "on-click": "pactl --format=json list sinks short | jq -cM --unbuffered \"[.[].name] | .[((index(\\\"$(pactl get-default-sink)\\\")+1)%length)]\" | xargs pactl set-default-sink"
}
}