You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
dotfiles/waybar/config

90 lines
2.3 KiB

{
"layer": "top",
"position": "bottom",
"spacing": 5,
"modules-left": ["sway/workspaces", "sway/mode", "wlr/taskbar", "sway/window"],
"modules-center": ["clock"],
"modules-right": ["cpu", "memory", "network", "pulseaudio", "battery", "tray", "custom/poweroff"],
"sway/workspaces": {
"disable-scroll": true,
"format": "{name}"
},
"wlr/taskbar" : {
"format": "{icon}",
"icon-size": 20,
"spacing": 3,
"on-click": "activate",
"on-click-middle": "close",
},
"cpu": {
"format": " {usage}%",
"tooltip": false
},
"memory": {
"format": "\uf4bc {used:0.1f}G | {avail:0.1f}G",
"tooltip": false,
},
"network": {
"family": "ipv4",
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "<span color='#589df6'></span> {essid}",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"format-disconnected": "<span color='red'>Disconnected ⚠</span>",
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
"interval": 5
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "\ueee8 ",
"format-source": "{volume}%",
"format-source-muted": "",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["\uf027", "\uf028 "]
},
},
"clock": {
"interval": 1,
"format": "{:%r}",
"format-alt": "{:%A, %B %d, %Y | %r}",
"tooltip-format": "<tt>{calendar}</tt>",
"calendar": {
"format": {
"today": "<span color='red'>{}</span>",
}
},
},
"battery": {
"states": {
// "good": 95,
"warning": 20,
"critical": 10
},
"format": "<span color='#e88939'></span> {capacity}%",
"format-charging": "<span color='#e88939'>\udb80\udc85</span> {capacity}%",
"format-plugged": "",
"format-icons": ["", "", "", "", ""]
},
"sway/window": {
"format": "{app_id}",
"icon" : true
},
"tray": {
"icon-size": 18,
"spacing": 5,
"show-passive-items": "true"
},
/*"custom/poweroff": {
"format": "<span>\udb81\udc25</span> ",
"on-click": "wlogout",
"tooltip": false,
}*/
}