aboutsummaryrefslogtreecommitdiffstats
path: root/waybar/config
blob: ca808f7430e826ad542572bfa209fa15d4f82d70 (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
{
    "height": 30, 
    "spacing": 4, 
    "modules-left": ["sway/workspaces", "sway/mode"],
    "modules-right": ["tray", "custom/lock", "custom/scratchpad_indicator", "network", "cpu", "memory", "backlight", "pulseaudio", "battery", "clock"],
    "custom/lock": {
        "format": "   ",
        "on-click": "swaylock"
    },
    "custom/spotify": {
        "exec": "/usr/bin/python3 ~/.config/waybar/scripts/mediaplayer.py --player spotify",
        "format": "{}",
        "return-type": "json",
        "on-click": "playerctl play-pause",
        "on-scroll-up": "playerctl next",
        "on-scroll-down": "playerctl previous"
    },
    "sway/workspaces": {
        "disable-scroll": true,
        "all-outputs": false,
        "format": "{name}{icon}",
        "format-icons": {
            "1": ": terminal",
            "2": ": firefox",
            "3": ": discord",
            "4": ": spotify",
            "5": ": thunderbird",
            "default": ""
        }
    },
    "tray": {
        "spacing": 10
    },
    "custom/scratchpad_indicator": {
        "interval": 1,
        "exec": "swaymsg -t get_tree | ~/.config/waybar/scripts/scratchpads.py",
        "format": "  {} ",
        "on-click": "swaymsg 'scratchpad show'",
        "on-click-right": "swaymsg 'move scratchpad'"
    },
    "clock": {
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "format": "{:%d %b  %H:%M:%S}",
        "format-alt": "{:%Y-%m-%d}",
        "timezone": "Europe/London",
        "interval": 1
    },
    "battery": {
        "interval": 1,
        "states": {
            "warning": 30,
            "critical": 15,
        },
        "format": "{icon} {capacity}%",
        "format-charging": "{icon} {capacity}% ",
        "format-icons": [" ", " ", " ", " ", " "],
    },
    "backlight": {
        "format": "{icon} {percent}%",
        "format-icons": [" ", " "],
        "on-scroll-up": "brightnessctl set +5",
        "on-scroll-down": "brightnessctl set 5-"
    },
    "cpu": {
        "format": "  {usage}%",
        "tooltip": false
    },
    "memory": {
        "format": "  {used}/{total} GiB"
    },
    "network": {
        "format-wifi": "  {ipaddr} @ {essid} ({signalStrength}%)",
        "format-ethernet": "歷 {ipaddr}",
        "tooltip-format": "  {ifname} via {gwaddr}",
        "format-linked": "歷 {ifname} (No IP)",
        "format-disconnected": "歷 Disconnected",
        "format-alt": "{ifname}: {ipaddr}/{cidr}",
        "on-click-right": "alacritty -e /usr/bin/nmtui",
    },
    "pulseaudio": {
        "format": "{icon} {volume}%  {format_source}",
        "format-bluetooth": " {volume}%  {format_source}",
        "format-bluetooth-muted": " 0% {format_source}",
        "format-muted": "婢0% {format_source}",
        "format-source": " {volume}%",
        "format-source-muted": " 0%",
        "format-icons": {
            "headphone": " ",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": " ",
            "default": ["", " ", " "]
        },
        "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
        "on-click-right": "pavucontrol",
        "scroll-step": 0.5
    },
    "idle_inhibitor": {
        "format": "{icon} ",
        "format-icons": {
            "activated": " ",
            "deactivated": " "
        }
	}
}