What's inside
My Waybar sits at the top of the screen. It shows the current mode (Travail / Détente),
Hyprland workspaces, the clock, then system info, volume, network, bluetooth, and battery.
The network, bluetooth and system modules are clickable: they open a Wofi menu
to manage wifi networks, bluetooth devices, or show system stats.
{
"layer": "top",
"position": "top",
"margin-top": 6,
"margin-left": 10,
"margin-right": 10,
"spacing": 10,
"modules-left": ["custom/mode", "hyprland/workspaces"],
"modules-center": ["clock"],
"modules-right": [
"custom/system",
"pulseaudio",
"custom/network",
"bluetooth",
"custom/battery"
],
"clock": {
"format": "{:%H:%M - %d/%m/%Y}",
"on-click": "gnome-calendar"
},
"custom/network": {
"format": "{}",
"exec": "$HOME/.config/waybar/scripts/network.sh",
"interval": 5,
"on-click": "$HOME/.config/waybar/scripts/wifi_menu.sh"
},
"pulseaudio": {
"format": "{icon} {volume}%",
"on-click": "pavucontrol"
},
"bluetooth": {
"format": " {status}",
"on-click": "~/.config/waybar/scripts/bluetooth_menu.sh"
},
}
* {
font-family: "JetBrainsMono Nerd Font", sans-serif;
font-size: 12px;
font-weight: bold;
}
window#waybar {
background-color: transparent;
color: #ebdbb2;
}
.modules-left,
.modules-center,
.modules-right {
background-color: rgba(29, 32, 33, 0.75);
border: 1px solid rgba(142, 192, 124, 0.2);
border-radius: 12px;
margin: 6px 4px;
padding: 0 4px;
}
#workspaces button {
padding: 0 6px;
color: #a89984;
border-radius: 8px;
margin: 3px 2px;
background: transparent;
transition: all 0.2s ease-in-out;
}
#workspaces button.active {
color: #fbf1c7;
background-color: #458588;
}
#battery.warning:not(.charging) {
color: #cc241d;
}
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkMenu" id="menu">
<child>
<object class="GtkMenuItem" id="cpu">
<property name="label">CPU</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="memory">
<property name="label">RAM</property>
</object>
</child>
</object>
</interface>
7 scripts used by Waybar modules, all clickable and interactive via Wofi.
battery.sh
Displays battery icon + percentage. Icon changes based on charge level.
Download
bluetooth_menu.sh
Wofi menu to toggle bluetooth, enable airplane mode, or connect/disconnect devices.
Download
mode-indicator.sh
Shows the current mode (Travail / Détente) from /tmp/hypr-mode.
Download
network.sh
Shows current WiFi SSID or "Not connected". Runs every 5s.
Download
wifi_menu.sh
Wofi menu to toggle WiFi, enable airplane mode, connect to a network (prompts for password).
Download
sysinfo_bar.sh
Icon shown in the bar. Click opens sysinfo_menu.
Download
sysinfo_menu.sh
Wofi popup with CPU, RAM, temp, GPU, disk and uptime. Also launches btop.
Download