waybar auto syntax change

This commit is contained in:
Kyattsukuro 2026-05-05 00:32:23 +02:00
parent 740c556ffd
commit cb2926393a
3 changed files with 529 additions and 521 deletions

View File

@ -10,56 +10,69 @@
"output": "DP-2", "output": "DP-2",
"width": 64, "width": 64,
"modules-left": [
"modules-left": ["group/power", "hyprland/workspaces", "custom/specialWs", "group/activeApp"], "group/power",
"hyprland/workspaces",
"custom/specialWs",
"group/activeApp",
],
"modules-center": ["clock", "custom/weather#n1", "custom/weather#n2"], "modules-center": ["clock", "custom/weather#n1", "custom/weather#n2"],
"modules-right": ["privacy", "systemd-failed-units", "hyprland/submap", "modules-right": [
"cpu#avrage", "temperature", "memory", "disk", "privacy",
"group/sysBehavior", "group/player", "group/audio", "group/net", "group/systray"], "systemd-failed-units",
"hyprland/submap",
"cpu#avrage",
"temperature",
"memory",
"disk",
"group/sysBehavior",
"group/player",
"group/audio",
"group/net",
"group/systray",
],
"custom/apps": { "custom/apps": {
"format": "{icon}", "format": "{icon}",
"format-icons": "  ", "format-icons": "  ",
"exec-on-event": "true", "exec-on-event": "true",
"tooltip": false, "tooltip": false,
"on-click": "nwg-drawer -ovl -wm hyprland &" "on-click": "nwg-drawer -ovl -wm hyprland &",
}, },
"custom/lock": { "custom/lock": {
"format": "{icon}", "format": "{icon}",
"format-icons": "󰌾 ", "format-icons": "󰌾 ",
"exec-on-event": "true", "exec-on-event": "true",
"tooltip": false, "tooltip": false,
"on-click": "bash ~/.local/share/until-scripts/sleep.sh" "on-click": "bash ~/.local/share/until-scripts/sleep.sh",
}, },
"custom/suspend": { "custom/suspend": {
"format": "{icon}", "format": "{icon}",
"format-icons": "󰒲 ", "format-icons": "󰒲 ",
"exec-on-event": "true", "exec-on-event": "true",
"tooltip": false, "tooltip": false,
"on-click": "bash ~/.local/share/until-scripts/sleep.sh suspend" "on-click": "bash ~/.local/share/until-scripts/sleep.sh suspend",
}, },
"custom/hibernate": { "custom/hibernate": {
"format": "{icon}", "format": "{icon}",
"format-icons": "󰥠 ", "format-icons": "󰥠 ",
"exec-on-event": "true", "exec-on-event": "true",
"tooltip": false, "tooltip": false,
"on-click": "bash ~/.local/share/until-scripts/sleep.sh hibernate" "on-click": "bash ~/.local/share/until-scripts/sleep.sh hibernate",
}, },
"custom/logout": { "custom/logout": {
"format": "{icon}", "format": "{icon}",
"format-icons": "󰗽 ", "format-icons": "󰗽 ",
"exec-on-event": "true", "exec-on-event": "true",
"tooltip": false, "tooltip": false,
"on-click": "hyprctl dispatch exit" "on-click": "hyprctl dispatch exit",
}, },
"custom/restart": { "custom/restart": {
"format": "{icon}", "format": "{icon}",
"format-icons": "󰜉 ", "format-icons": "󰜉 ",
"exec-on-event": "true", "exec-on-event": "true",
"tooltip": false, "tooltip": false,
"on-click": "systemctl reboot" "on-click": "systemctl reboot",
}, },
"custom/poweroff": { "custom/poweroff": {
"format": "{icon}", "format": "{icon}",
@ -71,12 +84,20 @@
"group/power": { "group/power": {
"orientation": "vertical", "orientation": "vertical",
"modules": ["custom/apps", "custom/lock", "custom/logout", "custom/suspend", "custom/hibernate", "custom/restart", "custom/poweroff"], "modules": [
"custom/apps",
"custom/lock",
"custom/logout",
"custom/suspend",
"custom/hibernate",
"custom/restart",
"custom/poweroff",
],
"drawer": { "drawer": {
"transition-duration": 500, "transition-duration": 500,
"children-class": "player", "children-class": "player",
"transition-left-to-right": true, "transition-left-to-right": true,
} },
}, },
"hyprland/workspaces": { "hyprland/workspaces": {
@ -89,16 +110,21 @@
"custom/specialWs": { "custom/specialWs": {
"format": "S", "format": "S",
"exec-on-event": "true", "exec-on-event": "true",
"on-click": "hyprctl dispatch togglespecialworkspace scratchpad" "on-click": "hyprctl dispatch togglespecialworkspace scratchpad",
}, },
"group/activeApp": { "group/activeApp": {
"orientation": "vertical", "orientation": "vertical",
"modules": ["hyprland/window", "custom/activeWindowCloseWindow", "custom/activeWindowMaximize", "custom/activeWindowFloating"], "modules": [
"hyprland/window",
"custom/activeWindowCloseWindow",
"custom/activeWindowMaximize",
"custom/activeWindowFloating",
],
"drawer": { "drawer": {
"transition-duration": 500, "transition-duration": 500,
"children-class": "player", "children-class": "player",
"transition-left-to-right": true, "transition-left-to-right": true,
} },
}, },
"hyprland/window": { "hyprland/window": {
"tooltip-format": "{title}\n{class}", "tooltip-format": "{title}\n{class}",
@ -135,8 +161,6 @@
"on-click": "hyprctl dispatch togglefloating", "on-click": "hyprctl dispatch togglefloating",
}, },
"clock": { "clock": {
"format": " \n<big>{:%H:%M}</big>", "format": " \n<big>{:%H:%M}</big>",
"format-alt": "󰃭\n<big>{:%m.%d}</big>", "format-alt": "󰃭\n<big>{:%m.%d}</big>",
@ -152,14 +176,14 @@
"days": "<span color='#ecc6d9'><b>{}</b></span>", "days": "<span color='#ecc6d9'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>", "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</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": { "actions": {
"on-click-right": "mode", "on-click-right": "mode",
"on-scroll-up": "shift_up", "on-scroll-up": "shift_up",
"on-scroll-down": "shift_down" "on-scroll-down": "shift_down",
} },
}, },
"custom/weather#n1": { "custom/weather#n1": {
"exec": "~/.config/waybar/bar/scripts/weather_waper.sh get icon rain,wind moon humidity,pressure", "exec": "~/.config/waybar/bar/scripts/weather_waper.sh get icon rain,wind moon humidity,pressure",
@ -170,7 +194,7 @@
"interval": 300, "interval": 300,
"max-length": 6, "max-length": 6,
"return-type": "json", "return-type": "json",
"format": "{}" "format": "{}",
}, },
"custom/weather#n2": { "custom/weather#n2": {
"exec": "~/.config/waybar/bar/scripts/weather_waper.sh get temp rain,wind uv humidity,pressure", "exec": "~/.config/waybar/bar/scripts/weather_waper.sh get temp rain,wind uv humidity,pressure",
@ -180,7 +204,7 @@
"interval": 301, "interval": 301,
"max-length": 6, "max-length": 6,
"return-type": "json", "return-type": "json",
"format": "{}" "format": "{}",
}, },
"privacy": { "privacy": {
@ -193,7 +217,7 @@
"hide-on-ok": true, // Do not hide if there is zero failed units. "hide-on-ok": true, // Do not hide if there is zero failed units.
"format": "✗ {nr_failed}", "format": "✗ {nr_failed}",
"system": true, // Monitor failed systemwide units. "system": true, // Monitor failed systemwide units.
"user": true // Ignore failed user units. "user": true, // Ignore failed user units.
}, },
"hyprland/submap": { "hyprland/submap": {
"format": "<b>{}</b>", "format": "<b>{}</b>",
@ -204,9 +228,6 @@
"on-click": "hyprctl dispatch submap reset", "on-click": "hyprctl dispatch submap reset",
}, },
"cpu#avrage": { "cpu#avrage": {
"interval": 2, "interval": 2,
"format": " {usage}%", "format": " {usage}%",
@ -214,14 +235,13 @@
"tooltip-format": "Load: {load}\n~Freq: {avg_frequency}", "tooltip-format": "Load: {load}\n~Freq: {avg_frequency}",
}, },
"temperature": { "temperature": {
"interval": 2, "interval": 2,
"critical-threshold": 90, "critical-threshold": 90,
"format-critical": "<span foreground='#e78284'> {temperatureC}°C</span>", "format-critical": "<span foreground='#e78284'> {temperatureC}°C</span>",
"format": " {temperatureC}°C", "format": " {temperatureC}°C",
"tooltip-format": "CPU Temp: {temperatureC}", "tooltip-format": "CPU Temp: {temperatureC}",
"format-icons": ["", "", ""] "format-icons": ["", "", ""],
}, },
"memory": { "memory": {
"interval": 20, "interval": 20,
@ -232,7 +252,7 @@
"disk": { "disk": {
"interval": 15, "interval": 15,
"format": "󰋊 {specific_used:3.0f}GB", "format": "󰋊 {specific_used:3.0f}GB",
"unit": "GB" "unit": "GB",
}, },
"custom/idleWatch": { "custom/idleWatch": {
@ -258,17 +278,17 @@
"exec": "bash ~/.config/waybar/bar/scripts/notification_status.sh | jq --unbuffered --compact-output", "exec": "bash ~/.config/waybar/bar/scripts/notification_status.sh | jq --unbuffered --compact-output",
"on-click": "bash ~/.local/share/until-scripts/notification_history.sh mute; pkill -SIGRTMIN+10 waybar", "on-click": "bash ~/.local/share/until-scripts/notification_history.sh mute; pkill -SIGRTMIN+10 waybar",
"on-click-right": "bash ~/.local/share/until-scripts/notification_history.sh show", "on-click-right": "bash ~/.local/share/until-scripts/notification_history.sh show",
"on-click-middle": "bash ~/.local/share/until-scripts/notification_history.sh remove" "on-click-middle": "bash ~/.local/share/until-scripts/notification_history.sh remove",
}, },
"group/sysBehavior": { "group/sysBehavior": {
"orientation": "vertical", "orientation": "vertical",
"modules": ["custom/notification", "custom/idleWatch"], "modules": ["custom/notification", "custom/idleWatch", "custom/aiToggle"],
"drawer": { "drawer": {
"transition-duration": 500, "transition-duration": 500,
"children-class": "sysBehavior", "children-class": "sysBehavior",
"transition-left-to-right": false, "transition-left-to-right": false,
} },
}, },
"group/player": { "group/player": {
@ -278,13 +298,13 @@
"transition-duration": 500, "transition-duration": 500,
"children-class": "player", "children-class": "player",
"transition-left-to-right": false, "transition-left-to-right": false,
} },
}, },
"image#album-art": { "image#album-art": {
"exec": "bash ~/.config/waybar/bar/scripts/album_art.sh", "exec": "bash ~/.config/waybar/bar/scripts/album_art.sh",
"on-click": "qimgv $(bash ~/.config/waybar/bar/scripts/album_art.sh) &", "on-click": "qimgv $(bash ~/.config/waybar/bar/scripts/album_art.sh) &",
"size": 71, "size": 71,
"interval": 5 "interval": 5,
}, },
"mpris#status": { "mpris#status": {
"format": "{status_icon}", "format": "{status_icon}",
@ -292,17 +312,16 @@
"status-icons": { "status-icons": {
"paused": "", "paused": "",
"playing": "", "playing": "",
"stopped": "󰓛" "stopped": "󰓛",
// onclick: using defaults // onclick: using defaults
}, },
}, },
"mpris#title": { "mpris#title": {
"rotate": 270, "rotate": 270,
"format": "{title}", "format": "{title}",
"title-len": 16, "title-len": 16,
"format-stopped": "", "format-stopped": "",
"tooltip-format": "{artist} - {title}\n" "tooltip-format": "{artist} - {title}\n",
// onclick: using defaults // onclick: using defaults
}, },
"group/audio": { "group/audio": {
@ -312,13 +331,13 @@
"transition-duration": 500, "transition-duration": 500,
"children-class": "audio", "children-class": "audio",
"transition-left-to-right": false, "transition-left-to-right": false,
} },
}, },
"pulseaudio/slider": { "pulseaudio/slider": {
"min": 0, "min": 0,
"max": 150, "max": 150,
"orientation": "vertical" "orientation": "vertical",
}, },
"pulseaudio": { "pulseaudio": {
"justify": "center", "justify": "center",
@ -335,10 +354,10 @@
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": ["", "", ""] "default": ["", "", ""],
}, },
"on-click": "hyprctl dispatch exec '[float] bash ~/.local/share/until-scripts/kill-on-unfocus.sh pwvucontrol'", "on-click": "hyprctl dispatch exec '[float] bash ~/.local/share/until-scripts/kill-on-unfocus.sh pwvucontrol'",
"on-click-middle": "" "on-click-middle": "",
}, },
"group/net": { "group/net": {
"orientation": "vertical", "orientation": "vertical",
@ -347,7 +366,7 @@
"transition-duration": 500, "transition-duration": 500,
"children-class": "audio", "children-class": "audio",
"transition-left-to-right": false, "transition-left-to-right": false,
} },
}, },
"network#addr": { "network#addr": {
"on-click": "nm-connection-editor &", "on-click": "nm-connection-editor &",
@ -358,27 +377,27 @@
"tooltip-format": "{ifname} via {gwaddr}", "tooltip-format": "{ifname} via {gwaddr}",
"format-linked": "{ifname} (No IP) ", "format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠", "format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}" "format-alt": "{ifname}: {ipaddr}/{cidr}",
}, },
"network#up": { "network#up": {
"format": "󰕒 \n{bandwidthUpBits}", "format": "󰕒 \n{bandwidthUpBits}",
"justify": "center", "justify": "center",
"on-click": "kitty --class 'bar_popup' --title 'Connection Editor' nmtui-edit;exit", "on-click": "kitty --class 'bar_popup' --title 'Connection Editor' nmtui-edit;exit",
"tooltip": false "tooltip": false,
}, },
"network#down": { "network#down": {
"format": "󰇚 \n{bandwidthDownBits}", "format": "󰇚 \n{bandwidthDownBits}",
"justify": "center", "justify": "center",
"on-click": "kitty --class 'bar_popup' --title 'Connection Editor' nmtui-edit;exit", "on-click": "kitty --class 'bar_popup' --title 'Connection Editor' nmtui-edit;exit",
"tooltip": false "tooltip": false,
}, },
"network#total": { "network#total": {
"format": " \n{bandwidthTotalBits}", "format": " \n{bandwidthTotalBits}",
"justify": "center", "justify": "center",
"on-click": "bash ~/.local/share/until-scripts/kill-on-unfocus.sh kitty --class 'bar_popup' --title 'Connection Editor' sh -c 'nmtui-connect;exit'", "on-click": "bash ~/.local/share/until-scripts/kill-on-unfocus.sh kitty --class 'bar_popup' --title 'Connection Editor' sh -c 'nmtui-connect;exit'",
"tooltip": false "tooltip": false,
}, },
"group/systray": { "group/systray": {
@ -388,12 +407,12 @@
"transition-duration": 500, "transition-duration": 500,
"children-class": "audio", "children-class": "audio",
"transition-left-to-right": false, "transition-left-to-right": false,
} },
}, },
"custom/systrayDrawer": { "custom/systrayDrawer": {
"format": "󰋽", "format": "󰋽",
"tooltip": false "tooltip": false,
}, },
"tray": { "tray": {
"icon-size": 18, "icon-size": 18,

View File

@ -46,12 +46,10 @@ button:hover {
background: @base; background: @base;
} }
#custom-sepp { #custom-sepp {
color: @surface2; color: @surface2;
} }
#custom-apps { #custom-apps {
background-color: @green; background-color: @green;
color: @crust; color: @crust;
@ -81,7 +79,6 @@ button:hover {
#custom-poweroff { #custom-poweroff {
background-color: @red; background-color: @red;
color: @base; color: @base;
} }
#workspaces { #workspaces {
@ -91,7 +88,6 @@ button:hover {
margin: 0px; margin: 0px;
} }
#workspaces button { #workspaces button {
color: @text; color: @text;
font-weight: 600; font-weight: 600;
@ -153,7 +149,6 @@ window#waybar.empty #window{
color: @base; color: @base;
} }
#clock { #clock {
color: @maroon; color: @maroon;
font-weight: 900; font-weight: 900;
@ -164,18 +159,14 @@ window#waybar.empty #window{
color: @sapphire; color: @sapphire;
margin-bottom: 3px; margin-bottom: 3px;
font-size: 17px; font-size: 17px;
} }
#custom-weather.n2 { #custom-weather.n2 {
color: @sapphire; color: @sapphire;
} }
#privacy { #privacy {
color: @peach; color: @peach;
margin-left: 15px margin-left: 15px;
} }
#systemd-failed-units { #systemd-failed-units {
color: @red; color: @red;
@ -185,14 +176,13 @@ window#waybar.empty #window{
font-weight: 900; font-weight: 900;
} }
#cpu.avrage, #cpu.avrage,
#temperature, #temperature,
#memory, #memory,
#disk { #disk {
color: @blue; color: @blue;
font-weight: 600; font-weight: 600;
background-color: @crust background-color: @crust;
} }
#custom-idleWatch { #custom-idleWatch {
@ -246,7 +236,6 @@ window#waybar.empty #window{
border-radius: 5px; border-radius: 5px;
} }
#network { #network {
color: @crust; color: @crust;
font-weight: 600; font-weight: 600;
@ -267,13 +256,13 @@ window#waybar.empty #window{
} }
#network.addr { #network.addr {
background-color: @rosewater background-color: @rosewater;
} }
#tray { #tray {
color: @base; color: @base;
font-weight: 600; font-weight: 600;
background: @darkFlamingo background: @darkFlamingo;
} }
#custom-systrayDrawer { #custom-systrayDrawer {