waybar - updated alhp-utils module

This commit is contained in:
2025-05-05 13:02:52 +02:00
parent a2a6395e95
commit 3771ca9115
5 changed files with 152 additions and 159 deletions

View File

@@ -1,18 +1,14 @@
{
"layer": "bottom",
"output": ["DP-1", "DP-2", "!HDMI-A-2"],
"position": "bottom",
"mod": "dock",
"exclusive": true,
"gtk-layer-shell": true,
"passthrough": false,
"height": 30,
"modules-left": [
"hyprland/workspaces"
],
"modules-center": [
"mpris",
"privacy"
],
"modules-left": ["hyprland/workspaces"],
"modules-center": ["mpris", "privacy"],
"modules-right": [
"custom/alhp",
"cpu",
@@ -23,18 +19,18 @@
"network",
"battery",
"tray",
"clock"
"clock",
],
"hyprland/workspaces": {
"icon-size": 32,
"spacing": 16,
"on-scroll-up": "hyprctl dispatch workspace r+1",
"on-scroll-down": "hyprctl dispatch workspace r-1"
"on-scroll-down": "hyprctl dispatch workspace r-1",
},
"cpu": {
"interval": 5,
"format": " {usage}%",
"max-length": 10
"max-length": 10,
},
"disk": {
"interval": 30,
@@ -42,14 +38,14 @@
"path": "/",
"tooltip": true,
"unit": "GB",
"tooltip-format": "Available {free} of {total}"
"tooltip-format": "Available {free} of {total}",
},
"memory": {
"interval": 10,
"format": " {percentage}%",
"max-length": 10,
"tooltip": true,
"tooltip-format": "RAM - {used:0.1f}GiB used"
"tooltip-format": "RAM - {used:0.1f}GiB used",
},
"wlr/taskbar": {
"format": "{icon} {title:.17}",
@@ -58,11 +54,11 @@
"on-click-middle": "close",
"tooltip-format": "{title}",
"ignore-list": [],
"on-click": "activate"
"on-click": "activate",
},
"tray": {
"icon-size": 18,
"spacing": 3
"spacing": 3,
},
"clock": {
"format": "{:%R | %d.%m.%Y}",
@@ -78,16 +74,16 @@
"days": "<span color='#ecc6d9'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
}
"today": "<span color='#ff6699'><b><u>{}</u></b></span>",
},
},
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
}
"on-scroll-down": "shift_down",
},
},
"network": {
"format-wifi": "{essid} ({signalStrength}%) {icon}",
@@ -97,37 +93,19 @@
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
"tooltip-format-ethernet": "{ifname} ",
"tooltip-format-disconnected": "Disconnected",
"format-icons": [
"󰤯 ",
"󰤟 ",
"󰤢 ",
"󰤢 ",
"󰤨 "
]
"format-icons": ["󰤯 ", "󰤟 ", "󰤢 ", "󰤢 ", "󰤨 "],
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20
"critical": 20,
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": [
"󰂎",
"󰁺",
"󰁻",
"󰁼",
"󰁽",
"󰁾",
"󰁿",
"󰂀",
"󰂁",
"󰂂",
"󰁹"
]
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
},
"pulseaudio": {
"format": "{volume}% {icon} ",
@@ -143,16 +121,11 @@
"phone-muted": "",
"portable": "",
"car": "",
"default": [
"",
""
]
"default": ["", ""],
},
"scroll-step": 5,
"on-click": "pwvucontrol",
"ignored-sinks": [
"Easy Effects Sink"
]
"ignored-sinks": ["Easy Effects Sink"],
},
"privacy": {
"icon-spacing": 4,
@@ -162,19 +135,19 @@
{
"type": "screenshare",
"tooltip": true,
"tooltip-icon-size": 12
"tooltip-icon-size": 12,
},
{
"type": "audio-out",
"tooltip": true,
"tooltip-icon-size": 12
"tooltip-icon-size": 12,
},
{
"type": "audio-in",
"tooltip": true,
"tooltip-icon-size": 12
}
]
"tooltip-icon-size": 12,
},
],
},
"mpris": {
"format": "{player_icon} {dynamic}",
@@ -183,11 +156,11 @@
"ellipsis": "…",
"player-icons": {
"default": "▶",
"mpv": "🎵"
"mpv": "🎵",
},
"status-icons": {
"paused": "⏸"
}
"paused": "⏸",
},
},
"bluetooth": {
"format": " {status}",
@@ -197,13 +170,14 @@
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
},
"custom/alhp": {
"id": "custom-alhp",
"exec": "$HOME/.config/waybar/scripts/alhp.sh",
"format": "{} \uEB29 ",
"return-type": "json",
"interval": 60,
"tooltip": true
}
"tooltip": true,
"format": "{text}",
},
}