Skip to content

Instantly share code, notes, and snippets.

@nganhtu
Last active July 8, 2025 02:03
Show Gist options
  • Save nganhtu/2d92493469be12d2ac28435667ff0960 to your computer and use it in GitHub Desktop.
Save nganhtu/2d92493469be12d2ac28435667ff0960 to your computer and use it in GitHub Desktop.
Hyprland Waybar configuration
// ### Lavender Forest ### //
{
"include": [
"$HOME/.config/waybar/Modules",
"$HOME/.config/waybar/ModulesWorkspaces",
"$HOME/.config/waybar/ModulesCustom",
"$HOME/.config/waybar/ModulesGroups",
"$HOME/.config/waybar/UserModules"
],
"layer": "top",
// "mode": "dock",
"exclusive": true,
"passthrough": false,
"position": "top",
// "spacing": 6,
"fixed-center": true,
"ipc": true,
// "margin-top": 3,
// "margin-left": 8,
// "margin-right": 8,
"modules-left": [
"custom/arch",
"hyprland/workspaces#rw",
// "custom/separator",
"custom/playerctl",
// "custom/separator#blank_2",
"tray",
"group/notify"
],
"modules-center": [
"clock"
],
"modules-right": [
"hyprland/window",
"custom/separator",
"cpu",
"temperature",
"memory",
"disk",
"backlight",
"pulseaudio",
"battery",
"idle_inhibitor",
"custom/power"
],
// Additional / Edited Waybar Modules //
"custom/arch": {
"format": " ",
"tooltip": true,
"tooltip-format": "Application launcher",
"on-click": "rofi -show drun"
},
"clock": {
"format": "󰅐 {:%H:%M 󰃭 %A %d/%m/%Y}",
"tooltip-format": "<span color='#FFF3B8' size='larger'>{:%Y}</span>\n<tt>{calendar}</tt>",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": null,
"format": {
"months": "<span color='#D1C4E9'><b>{}</b></span>",
"days": "<span color='#E6E6FA'><b>{}</b></span>",
"weekdays": "<span color='#B2E4C8'><b>{}</b></span>",
"today": "<span color='#FFF3B8'><b><u>{}</u></b></span>"
}
}
},
"cpu": {
"format": "󰍛 {usage}%",
"interval": 1,
"min-length": 5,
"format-alt-click": "click",
"format-alt": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% 󰍛 ",
"format-icons": [
"▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"
],
"on-click-right": "gnome-system-monitor"
},
"memory": {
"interval": 10,
"format": "󰾆 {used:0.1f}GB 󰜉 {swapUsed:0.1f}GB",
"format-alt": "󰾆 {percentage}% 󰜉 {swapPercentage}%",
"format-alt-click": "click",
"tooltip": true,
"tooltip-format": "RAM {used:0.1f}GB/{total:0.1f}GB; swap {swapUsed:0.1f}GB/{swapTotal:0.1f}GB",
"on-click-right": "kitty --title btop sh -c 'btop'"
},
"temperature": {
"interval": 10,
"tooltip": true,
"hwmon-path": [
"/sys/class/hwmon/hwmon6/temp1_input"
],
// "thermal-zone": 0,
"critical-threshold": 80,
"format-critical": "CRIT {icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°C",
"format-icons": [
"󰈸"
],
"on-click-right": "kitty --title nvtop sh -c 'nvtop'"
},
"disk": {
"interval": 30,
"path": "/",
"format": "󰋊 {used}",
"on-click-right": "baobab"
// "tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)",
},
"backlight": {
"format": " {percent}%"
},
"battery": {
// "interval": 5,
"align": 0,
"rotate": 0,
// "bat": "BAT1",
// "adapter": "ACAD",
"full-at": 100,
"design-capacity": false,
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": "󱘖 {capacity}%",
"format-alt-click": "click",
"format-full": "{icon} full",
"format-alt": "{icon} {time}",
"format-icons": [
"󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"
],
"format-time": "{H}h {M}min",
"tooltip": true,
"tooltip-format": "{timeTo} {power}w",
"on-click-middle": "$HOME/.config/hypr/scripts/ChangeBlur.sh",
"on-click-right": "$HOME/.config/hypr/scripts/Wlogout.sh"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment