aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar/config
blob: 96c66c5ec27deb1919b8d932c6066d3121427c5c (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
{
    "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"],
    
    "hyprland/window": {
        "format": "{}",
        "max-length": 50,
        "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"
    },

    "custom/doppler" : {
      "tooltip": false,
      "format": "{}",
      "signal": 13,
      "exec" : "sb-doppler",
      "on-click": "sb-doppler 1",
      "on-click-right": "sb-doppler 3",
      "on-click-middle": "pkill -RTMIN+13 waybar"
    },

    "custom/forecast" : {
      "tooltip": false,
      "format": "{}",
      "signal": 5,
      "exec" : "sb-forecast",
      "interval" : 1800,
      "on-click": "sb-forecast 1",
      "on-click-right": "sb-forecast 3",
      "on-click-middle": "pkill -RTMIN+5 waybar"
    },

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

    "custom/microphone" : {
      "tooltip": false,
      "format": "{}",
      "signal": 8,
      "exec" : "sb-microphone",
      "on-click": "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",
    },

    "custom/volume" : {
      "tooltip": false,
      "format": "{}",
      "signal": 10,
      "exec" : "sb-volume",
      "on-click": "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",
    },

    "custom/clock" : {
      "tooltip": false,
      "format": "{}",
      "signal": 1,
      "exec" : "sb-clock",
      "interval" : 60,
      "on-click": "",
    },

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