aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar/config
blob: 670909eeeaf6d50d812bf3250c4010e0b5e04420 (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
{
    "layer": "top",
    "position": "top",
    "spacing": 20,
    "reload_style_on_change": true,
    "modules-left": ["hyprland/workspaces", "hyprland/window"],
    "modules-center": [],
    "modules-right": ["custom/memory","custom/doppler","custom/forecast","custom/nettraf","custom/microphone","custom/volume","custom/clock","custom/internet","tray"],
    
    "hyprland/window": {
        "format": "{}",
        "max-length": 60,
        "separate-outputs": true,
    },

    "hyprland/workspaces": {
        "disable-scroll": true,
        "all-outputs": true,
        "on-click": "activate",
        "format": "{name}",
    },

    "custom/memory" : {
      "tooltip": false,
      "format": "{}",
      "signal": 14,
      "exec" : "sb-memory",
      "interval": 10,
      "on-click": "sb-memory 1",
      "on-click-right": "sb-memory 3",
      "on-click-middle": "sb-memory 2",
      "on-click-backward": "sb-memory 6",
    },

    "custom/doppler" : {
      "tooltip": false,
      "format": "{}",
      "signal": 13,
      "interval": 650,
      "exec" : "sb-doppler",
      "on-click": "sb-doppler 1",
      "on-click-right": "sb-doppler 3",
      "on-click-middle": "sb-doppler 2",
      "on-click-backward": "sb-doppler 6"
    },

    "custom/forecast" : {
      "tooltip": false,
      "format": "{}",
      "signal": 5,
      "exec" : "sb-forecast",
      "interval" : 18000,
      "on-click": "sb-forecast 1",
      "on-click-right": "sb-forecast 3",
      "on-click-middle": "sb-forecast 2",
      "on-click-backward": "sb-forecast 6"
    },

    "custom/nettraf" : {
      "tooltip": false,
      "format": "{}",
      "signal": 16,
      "exec" : "sb-nettraf",
      "interval" : 1,
      "on-click": "sb-nettraf 1",
      "on-click-right": "sb-nettraf 3",
      "on-click-backward": "sb-nettraf 6"
    },

    "custom/microphone" : {
      "tooltip": false,
      "format": "{}",
      "signal": 8,
      "exec" : "sb-microphone",
      "on-click": "sb-microphone 1",
      "on-click-middle": "wpctl set-mute @DEFAULT_SOURCE@ toggle; pkill -RTMIN+8 waybar",
      "on-scroll-up": "wpctl set-volume @DEFAULT_SOURCE@ 0.01+; pkill -RTMIN+8 waybar",
      "on-scroll-down": "wpctl set-volume @DEFAULT_SOURCE@ 0.01-; pkill -RTMIN+8 waybar",
      "on-click-right": "sb-microphone 3",
      "on-click-backward": "sb-microphone 6"
    },

    "custom/volume" : {
      "tooltip": false,
      "format": "{}",
      "signal": 10,
      "exec" : "sb-volume",
      "on-click": "sb-volume 1",
      "on-click-middle": "wpctl set-mute @DEFAULT_SINK@ toggle; pkill -RTMIN+10 waybar",
      "on-scroll-up": "wpctl set-volume @DEFAULT_SINK@ 0.01+; pkill -RTMIN+10 waybar",
      "on-scroll-down": "wpctl set-volume @DEFAULT_SINK@ 0.01-; pkill -RTMIN+10 waybar",
      "on-click-right": "sb-volume 3",
      "on-click-backward": "sb-volume 6"
    },

    "custom/clock" : {
      "tooltip": false,
      "format": "{}",
      "signal": 1,
      "exec" : "sb-clock",
      "interval" : 60,
      "on-click": "sb-clock 1",
      "on-click-middle": "sb-clock 2",
      "on-click-right": "sb-clock 3",
      "on-click-backward": "sb-clock 6",
    },

    "custom/internet" : {
      "tooltip": false,
      "format": "{}",
      "signal": 4,
      "exec" : "sb-internet",
      "on-click": "sb-internet 1; pkill -RTMIN+4 waybar",
      "on-click-right": "sb-internet 3; pkill -RTMIN+4 waybar",
      "on-click-middle": "pkill -RTMIN+4 waybar",
      "on-click-backward": "sb-internet 6"
    }
}