dotfiles/.config/waybar/config
Rodolphe Bréard d2e73e4115 Waybar theme
2024-10-12 13:24:57 +02:00

133 lines
4.4 KiB
Text

{
"margin-top" : 0,
"margin-left": 0,
"margin-right": 0,
"height" : 35,
"modules-left": [
"custom/launcher",
"hyprland/workspaces"
],
"modules-center": [
"hyprland/window"
],
"modules-right": [
"pulseaudio",
"network",
"temperature",
"battery",
"clock",
"custom/updates",
"custom/notification",
"tray",
"custom/power"
],
"hyprland/window": {
"format": "{title}",
"icon": false,
},
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"sort-by-number": true
},
"clock": {
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:L%A %e %b}",
"locale": "fr_FR.utf8",
"calendar": {
"weeks-pos": "left",
"format": {
"weeks": "<span color='#99ffdd'><b>{:%U}</b></span>",
"today": "<span color='#ff6699'><b>{}</b></span>"
}
}
},
"cpu": {
"format": " {usage}%",
"tooltip": false
},
"memory": {
"format": "{}%  "
},
"temperature": {
"critical-threshold": 80,
"format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""]
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-full": "{icon} {capacity}%",
"format-charging": "⚡ {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"network": {
"format-wifi": " {signalStrength}%",
"format-ethernet": "🖧",
"tooltip-format": "{ipaddr}/{cidr} {ifname} via {gwaddr} {essid}",
"format-linked": "{ifname} (No IP) ⚠",
"format-disconnected": " ⚠ ",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": "🔇 {format_source}",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/launcher": {
"format": " ",
"on-click": "wofi --show drun",
},
"custom/power": {
"format": "⏻",
"tooltip": false,
"on-click": "poweroff"
},
"custom/updates": {
"format": "{} {icon}",
"return-type": "json",
"format-icons": {
"has-updates": "󱍷",
"updated": "󰂪"
},
"exec-if": "which waybar-module-pacman-updates",
"exec": "waybar-module-pacman-updates --interval-seconds 5 --network-interval-seconds 300"
},
"custom/notification": {
"tooltip": false,
"format": "{icon}",
"format-icons": {
"notification": "<span foreground='red'><sup></sup></span>",
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": "",
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": ""
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
}