From bc5ce70a7fa42f9bdee05f0c9e85db771925e31b Mon Sep 17 00:00:00 2001 From: sudacode Date: Tue, 31 Mar 2026 12:05:30 -0700 Subject: [PATCH] update --- .config/hypr/windowrules.conf | 4 ++ .../waybar/catppuccin-macchiato/config.jsonc | 62 +++++++++++-------- .config/waybar/catppuccin-macchiato/style.css | 24 ++++++- 3 files changed, 61 insertions(+), 29 deletions(-) diff --git a/.config/hypr/windowrules.conf b/.config/hypr/windowrules.conf index ca069f7..659d52d 100644 --- a/.config/hypr/windowrules.conf +++ b/.config/hypr/windowrules.conf @@ -104,3 +104,7 @@ windowrule = float on, match:title Picture in picture windowrule = pin on, match:title Picture in picture windowurle = no_vrr on, match:class mpv + +# aibar popup (AI usage widget) +windowrule = float on, match:title aibar +windowrule = move 100%-374 50, match:title aibar diff --git a/.config/waybar/catppuccin-macchiato/config.jsonc b/.config/waybar/catppuccin-macchiato/config.jsonc index 85cbf52..fc13ca5 100644 --- a/.config/waybar/catppuccin-macchiato/config.jsonc +++ b/.config/waybar/catppuccin-macchiato/config.jsonc @@ -24,6 +24,7 @@ "custom/notification", "custom/updates", "custom/kernel", + "custom/codexbar", // "disk#ssd", // "temperature", // "cpu", @@ -32,7 +33,7 @@ "network", "pulseaudio", "clock", - "custom/weather" + "custom/meteobar", ], "hyprland/workspaces": { @@ -52,10 +53,10 @@ }, }, "bluetooth": { - "format-on": "bt ", - "format-off": "bt ({status}) ", - "format-connected": "{device_alias} ", - "format-connected-battery": "{device_alias} [{device_battery_percentage}%] ", + "format-on": "bt ", + "format-off": "bt ({status}) ", + "format-connected": "{device_alias} ", + "format-connected-battery": "{device_alias} [{device_battery_percentage}%] ", "format-device-preference": ["ugreen_1", "ugreen_2"], "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}", @@ -148,40 +149,39 @@ "interval": 60, "interface-ethernet": "enp1s*", "interface-wifi": "wlan0", - "format-ethernet": "eth 󰈀", + "format-ethernet": "eth ", "format-wifi": "{essid} ({signalStrength}%) ", - "tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr} 󰈀", + "tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr} ", "tooltip-format-wifi": "{ifname}: {ipaddr}/{cidr} ", - "format-linked": "(No IP) 󰈀", + "format-linked": "(No IP) ", "format-disconnected": "Disconnected ⚠", "on-click": "$HOME/.config/rofi/scripts/rofi-wifi-menu.sh", }, - "custom/weather": { - "interval": 600, - "exec": "~/.config/waybar/scripts/wttr.sh Los_Angeles", + "custom/meteobar": { + "exec": "$HOME/.config/waybar/scripts/meteobar.sh", "return-type": "json", - "format": "{}", + "interval": 900, "tooltip": true, }, "custom/kernel": { "exec": "uname -r | sed -E 's/^([0-9]+\\.[0-9]+\\.[0-9]+)-.*-([a-zA-Z0-9]+)/\\1-\\2/'", - "format": "{} ", + "format": "{} ", }, "pulseaudio": { "scroll-step": 2, "format": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon}  {format_source}", - "format-bluetooth-muted": "󰝟 {icon}  {format_source}", - "format-muted": "󰝟 {format_source}", + "format-bluetooth-muted": "\uf6a9 {icon}  {format_source}", + "format-muted": " {format_source}", "format-source": "{volume}% ", "format-source-muted": "", "ignored-sinks": ["Easy Effects Sink"], "format-icons": { "headphone": "", - "hands-free": "󰋎", - "headset": "󰋎", + "hands-free": "", + "headset": "", "phone": "", - "portable": "", + "portable": "", "car": "", }, "on-click": "pavucontrol", @@ -194,14 +194,14 @@ "scroll-step": 2, "format": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon}  {format_source}", - "format-bluetooth-muted": "󰝟 {icon}  {format_source}", - "format-muted": "󰝟 {format_source}", + "format-bluetooth-muted": "\uf6a9 {icon}  {format_source}", + "format-muted": " {format_source}", "format-source": "{volume}% ", "format-source-muted": "", "format-icons": { "headphone": "", - "hands-free": "󰋎", - "headset": "󰋎", + "hands-free": "", + "headset": "", "phone": "", "portable": "", "car": "", @@ -221,6 +221,7 @@ "8": "八", "9": "九", "10": "十", + "urgent": "", // "11": "一", // "12": "二", // "13": "三", @@ -250,8 +251,8 @@ "format": "{} {icon}", "return-type": "json", "format-icons": { - "has-updates": "", - "updated": "󰚰", + "has-updates": "", + "updated": "", }, "exec-if": "which waybar-module-pacman-updates", "exec": "waybar-module-pacman-updates --no-zero-output --tooltip-align-columns", @@ -264,7 +265,7 @@ }, "custom/firefox-scroll": { "exec": "$HOME/.config/waybar/scripts/scroll-firefox.sh", - "format": "{}", + "format": "{}", "max-length": 35, "on-click": "playerctl -p firefox play-pause", "hide-empty-text": true, @@ -303,7 +304,7 @@ }, "custom/mpv-scroll": { "exec": "$HOME/.config/waybar/scripts/scroll-mpv.sh", - "format": " {}", + "format": " {}", "max-length": 35, "on-click": "playerctl -p mpv play-pause", "hide-empty-text": true, @@ -328,4 +329,13 @@ "on-click-right": "swaync-client -d -sw", "escape": false, }, + "custom/codexbar": { + "exec": "codexbar --icon \"\" | sed 's/ *|//g'", + "return-type": "json", + "interval": 300, + "signal": 12, + "tooltip": true, + "on-click": "python3 ~/.config/waybar/scripts/aibar-popup.py", + "on-click-right": "python3 ~/.config/waybar/scripts/aibar-popup.py --claude", + }, } diff --git a/.config/waybar/catppuccin-macchiato/style.css b/.config/waybar/catppuccin-macchiato/style.css index c4fc1f4..dc8085f 100644 --- a/.config/waybar/catppuccin-macchiato/style.css +++ b/.config/waybar/catppuccin-macchiato/style.css @@ -30,7 +30,8 @@ window#waybar.hidden { tooltip { background-color: @base; - border: 1px solid @subtext0; + border: 1px solid @surface2; + border-radius: 0.69em; } tooltip label { @@ -100,7 +101,7 @@ button:hover { margin: 5px 1px 5px 2px; } -#custom-weather, +#custom-meteobar, #clock, #language, #pulseaudio, @@ -139,12 +140,17 @@ button:hover { margin-right: 0; } -#custom-weather { +#custom-meteobar { background-color: @teal; color: @mantle; margin-right: 5px; } +#custom-meteobar.rainy { background-color: @blue; color: @mantle; } +#custom-meteobar.snowy { background-color: @lavender; color: @mantle; } +#custom-meteobar.stormy { background-color: @red; color: @mantle; } +#custom-meteobar.error { background-color: @overlay0; color: @text; } + #custom-kernel { background-color: @mauve; color: @mantle; @@ -334,3 +340,15 @@ label:focus { background-color: @maroon; color: @mantle; } + +#custom-codexbar { + padding: 0 10px; + margin: 5px 1px; + background-color: @surface0; + border-radius: 0.69em; +} + +#custom-codexbar.low { color: @green; } +#custom-codexbar.mid { color: @yellow; } +#custom-codexbar.high { color: @peach; } +#custom-codexbar.critical { color: @red; }