feat(waybar): update

This commit is contained in:
2026-03-15 13:09:30 +01:00
parent 262acb7d8b
commit e9d9ec86a3

View File

@@ -7,7 +7,10 @@
"gtk-layer-shell": true, "gtk-layer-shell": true,
"passthrough": false, "passthrough": false,
"fixed-center": true, "fixed-center": true,
"modules-left": ["hyprland/workspaces", "hyprland/window"], "modules-left": [
"hyprland/workspaces",
"hyprland/window"
],
"modules-right": [ "modules-right": [
"cpu", "cpu",
"memory", "memory",
@@ -20,7 +23,7 @@
"battery", "battery",
"tray", "tray",
"custom/notification", "custom/notification",
"custom/power", "custom/power"
], ],
"mpris": { "mpris": {
"format": "{cover_art} {artist} - {title}", "format": "{cover_art} {artist} - {title}",
@@ -44,7 +47,8 @@
"class<chromium-browser>": " ", "class<chromium-browser>": " ",
"class<chrome-web.telegram.org__-Default>": " ", "class<chrome-web.telegram.org__-Default>": " ",
"class<chrome-music.youtube.com__-Default>": " " "class<chrome-music.youtube.com__-Default>": " "
} },
"window-rewrite-default": " "
}, },
"hyprland/window": { "hyprland/window": {
"format": "{title}", "format": "{title}",
@@ -55,7 +59,6 @@
"": " Empty Workspace" "": " Empty Workspace"
} }
}, },
"tray": { "tray": {
"show-passive-items": true, "show-passive-items": true,
"spacing": 10, "spacing": 10,
@@ -96,18 +99,31 @@
"format-muted": " muted", "format-muted": " muted",
"format-icons": { "format-icons": {
"headphone": " ", "headphone": " ",
"default": [" ", " ", " "], "default": [
" ",
" ",
" "
]
}, },
"on-click": "pavucontrol", "on-click": "pavucontrol"
}, },
"battery": { "battery": {
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-charging": "󱐋{icon} {capacity}%", "format-charging": "󱐋{icon} {capacity}%",
"format-plugged": "󱐋{icon} {capacity}%", "format-plugged": "󱐋{icon} {capacity}%",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀"], "format-icons": [
"󰂎",
"󰁺",
"󰁻",
"󰁼",
"󰁽",
"󰁾",
"󰁿",
"󰂀"
],
"states": { "states": {
"critical": 15, "critical": 15,
"warning": 30, "warning": 30
}, },
"events": { "events": {
"on-discharging-critical": "notify-send -u critical 'Low Battery'" "on-discharging-critical": "notify-send -u critical 'Low Battery'"
@@ -115,12 +131,12 @@
}, },
"custom/sep": { "custom/sep": {
"format": "|", "format": "|",
"tooltip": false, "tooltip": false
}, },
"custom/power": { "custom/power": {
"tooltip": false, "tooltip": false,
"on-click": "wlogout -p layer-shell &", "on-click": "wlogout -p layer-shell &",
"format": "⏻", "format": "⏻"
}, },
"custom/nowplaying": { "custom/nowplaying": {
"exec": "~/.config/waybar/scripts/nowplaying.sh", "exec": "~/.config/waybar/scripts/nowplaying.sh",
@@ -142,7 +158,7 @@
}, },
"on-click": "sleep 0.1 && swaync-client -t -sw", "on-click": "sleep 0.1 && swaync-client -t -sw",
"return-type": "json", "return-type": "json",
"tooltip": false, "tooltip": false
}, },
"custom/weather": { "custom/weather": {
"format": "{}", "format": "{}",
@@ -161,7 +177,12 @@
"network": { "network": {
"interface": "wlp1s0", "interface": "wlp1s0",
"format": "", "format": "",
"format-icons": ["󰤟 ", "󰤢 ", "󰤥 ", "󰤨 "], "format-icons": [
"󰤟 ",
"󰤢 ",
"󰤥 ",
"󰤨 "
],
"format-wifi": "{icon} {essid}", "format-wifi": "{icon} {essid}",
"format-ethernet": "󰈀 Ethernet", "format-ethernet": "󰈀 Ethernet",
"format-disconnected": "󰤮 Disconnected", "format-disconnected": "󰤮 Disconnected",