aboutsummaryrefslogtreecommitdiff
path: root/home-manager/laptop/programs/waybar/config.jsonc
blob: 84aeafdd79c0f3f7f3639b6cab2fba511f82db89 (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
{
    "layer": "top", // Waybar at top layer
    "height": 40, // Waybar height (to be removed for auto height)
    "spacing": 8, // Gaps between modules (4px)
    "margin-top": 20,
    "margin-left": 20,
    "margin-right": 20,
    "margin-down": 5,
    "modules-left": ["hyprland/workspaces"],
    "modules-center": ["clock"],
    "modules-right": ["network", "memory", "backlight", "pulseaudio", "hyprland/language", "tray", "battery"],

    "hyprland/workspaces": {
     "format": "{icon}",
     "on-click": "activate",
     "all-outputs": false,
     "format-icons": {
             "1": "α",
             "2": "β",
             "3": "γ",
             "4": "δ",
             "5": "ε",
             "urgent": "λ",
             "focused": "σ",
             "default": "ω"}
   },
   "hyprland/language": {
	   "format": "{} <span font-family='Material Design Icons' rise='-1000' size='medium'>󰌌</span>",
	   "format-ru": "ru",
	   "format-en": "en"
   },
    "tray": {
        "spacing": 10
    },
    "clock": {
        // "timezone": "America/New_York",
	"format": "{:%H:%M  󰅐}",
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "format-alt": "{:%d %h %Y  󰃮}",
	"on-click": "killall calcure || alacritty -t calcure -e calcure;sudo ydotool click 0xc1"
    },
    "memory": {
        "format": "{}% ",
	"on-click": "killall btop || alacritty -t btop -e btop;sudo ydotool click 0xc1"
    },
    "backlight": {
        // "device": "acpi_video1",
        "format": "{percent}% {icon}",
        "format-icons": ["󰃞", "󰃟", "󰃠"]
    },
    "battery": {
        "states": {
            // "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{capacity}% {icon}",
        "format-charging": "{capacity}% 󰂄",
        "format-plugged": "{capacity}% ",
        "format-alt": "{icon}",
        // "format-good": "", // An empty format will hide the module
        // "format-full": "",
        "format-icons": ["󱃍", "󰁼", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
    },
    "network": {
        // "interface": "wlp2*", // (Optional) To force the use of this interface
        "format-wifi": "{essid} ({signalStrength}%) 󰤨",
        "format-ethernet": "{ipaddr}/{cidr} ",
        "tooltip-format": "{ifname} via {gwaddr} ",
        "format-linked": "{ifname} (No IP) ",
        "format-disconnected": "󰤫",
        "on-click": "killall connman-gtk || connman-gtk;sudo ydotool click 0xc1"
    },
    "pulseaudio": {
        // "scroll-step": 1, // %, can be a float
        "format": "{volume}% {icon} {format_source}",
        "format-bluetooth": "{volume}% <span font-family='Material Design Icons' rise='-2000' font-size='x-large'>󰥰</span> {format_source}",
        "format-bluetooth-muted": "󰟎 {format_source}",
        "format-muted": "󰝟 {format_source}",
        "format-source": "{volume}% 󰍬",
        "format-source-muted": "󰍭",
        "format-icons": {
            "headphone": "󰋋",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
	    "muted-icon": "󰝟",
            "default": ["󰕿", "󰖀", "󰕾"]
        },
        "on-click": "killall bluetuith || alacritty -t blue -e bluetuith; sudo ydotool click 0xc1"
    },
}