aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/waybar/config.jsonc
blob: 97a7785a843e580393c9e3b0663fd435705343ca (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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// -*- mode: jsonc -*-
{
    "layer": "top", // Waybar at top layer
    "position": "left", // Waybar position (top|bottom|left|right)
    "margin": 5,
    // "height": 30, // Waybar height (to be removed for auto height)
    // "width": 10, // Waybar width
    "spacing": 10, // Gaps between modules (4px)
    "reload_style_on_change": true,
    // Choose the order of the modules
    "modules-left": [
        "wlr/taskbar",
    ],
    "modules-center": [
    ],
    "modules-right": [
        "pulseaudio",
        "network",
        "bluetooth",
        "battery",
        "custom/languages",
        "tray",
        "clock",
        "custom/power"
    ],
    // Modules configuration
    // "wlr/workspaces": {
    //     "disable-scroll": true,
    //     "all-outputs": true,
    //     "warp-on-scroll": false,
    //     "format": "{name}: {icon}",
    //     "format-icons": {
    //         "1": "",
    //         "2": "",
    //         "3": "",
    //         "4": "",
    //         "5": "",
    //         "urgent": "",
    //         "focused": "",
    //         "default": ""
    //     }
    // },
    "tray": {
        // "icon-size": 21,
        "spacing": 15
    },
    "clock": {
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "format": "-\n{:%H\n%M\n-\n%d\n%a}",
        "justify": "center"
    },
    "temperature": {
        // "thermal-zone": 2,
        // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
        "critical-threshold": 80,
        "justify": "center",
    		"tooltip": false,
        "format": "{icon}\n{temperatureC}°C",
        "format-icons": ["", "", ""]
    },

    "battery": {
        "states": {
            "good": 95,
            "warning": 30,
            "critical": 15
        },
        "justify": "center",
    		"tooltip": false,
        "format": "{icon}\n{capacity}%",
        "format-full": "\n{capacity}%",
        "format-charging": "\n{capacity}%",
        "format-plugged": "\n{capacity}%",
        // "format-good": "", // An empty format will hide the module
        "format-full": "",
        "format-icons": ["", "", "", "", ""]
    },

    "bluetooth": {
    	"format": "",
    	"format-connected": "",
    	"format-disabled": "✘",
    	"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
    	"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
    	"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
    	"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
    },

    "network": {
        // "interface": "wlp2*", // (Optional) To force the use of this interface
        "justify": "center",
        "format-wifi": "  ",
        "format-ethernet": "  \n",
        "tooltip-format-wifi": "{ipaddr} @ {essid}",
        "tooltip-format-ethernet": "{ipaddr} @ {ifname}",
        "format-disconnected": "⚠",
        "format-disabled": "✘",
        "on-click": "alacritty -e nmtui"
    },

    "pulseaudio": {
        // "scroll-step": 1, // %, can be a float
        "justify": "center",
        "format": "  ",
        "format-bluetooth": "",
        "format-muted": "  ",
        "format-source": " ",
        "format-source-muted": "",
        "format-icons": {
            "headphone": "",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", "", ""],
            "muted": [""]
        },
        "on-click": "wpctl set-mute @DEFAULT_SINK@ toggle",
        "on-click-right": "pavucontrol"
    },

    "wlr/taskbar": {
        "format": "{icon}",
        "icon-size": 14,
        "icon-theme": "Qogir",
        "tooltip-format": "{title}",
        "on-click": "activate",
        "on-click-middle": "close",
    },
    
    "custom/power": {
        "justify": "center",
        "format": " ⏻ ",
    		"tooltip": false,
    		"menu": "on-click",
    		"menu-file": "$HOME/.config/waybar/power_menu.xml",
    		"menu-actions": {
    			"shutdown": "systemctl poweroff",
    			"reboot": "systemctl reboot",
    			"logout": "loginctl  terminate-user $USER",
    			"hibernate": "systemctl hibernate"
    		}
    }
}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.