diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-10-19 12:41:56 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-10-20 12:23:30 +0200 |
| commit | c86fab0e8d470c7e30bb875c3f7f9d17fdb975f5 (patch) | |
| tree | 1873fbe914047060e8ef4f8d2349ee91a0342f85 /config/waybar | |
| parent | 4acf377f747bcce7e37294913dc8e44ddf625dc8 (diff) | |
| parent | ab1ee88d6eb31c6c57233ab35d65fa05717ee246 (diff) | |
Merge branch 'main' of git.sr.ht:~rbdr/dotfiles
Diffstat (limited to 'config/waybar')
| -rw-r--r-- | config/waybar/config.jsonc | 17 | ||||
| -rw-r--r-- | config/waybar/style.css | 45 |
2 files changed, 57 insertions, 5 deletions
diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index 8ae7c95..52b233f 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -12,10 +12,11 @@ "idle_inhibitor", "custom/mullvad", "custom/tailscale", - "network", "pulseaudio", + "custom/builds", "power-profiles-daemon", "battery", + "network", "clock", "tray", "custom/power" @@ -23,8 +24,8 @@ "idle_inhibitor": { "format": "{icon}", "format-icons": { - "activated": "SLP", - "deactivated": "CAF" + "activated": "CAF", + "deactivated": "ZZZ" } }, "clock": { @@ -50,7 +51,15 @@ "format-linked": "{ifname} (No IP) <span font-family='Font Awesome 6 Free'></span>", "format-disconnected": "Disconnected <span font-family='Font Awesome 6 Free'>⚠</span>", "format-alt": "{ifname}: {ipaddr}/{cidr}", - "format-icons": ["․", ":", "⸪", "⁛"] + "format-icons": ["․", ":", "⸪", "⁛"], + "on-click-right": "kitty nmtui" + }, + "custom/builds": { + "format": "{text}", + "exec": "~/AppConfig/waybar/sourcehut.sh", + "return-type": "json", + "on-click": "~/AppConfig/waybar/sourcehut.sh --popup", + "interval": 10, }, "power-profiles-daemon": { "format": "{icon}", diff --git a/config/waybar/style.css b/config/waybar/style.css index deee975..90489da 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -60,6 +60,7 @@ button:hover { #pulseaudio, #wireplumber, #custom-media, +#custom-builds, #tray, #mode, #idle_inhibitor, @@ -103,9 +104,13 @@ button:hover { } #idle_inhibitor { - background: #4F8FE6; + color: #0F261F; + background: #DAE6E3; } +#idle_inhibitor.activated { + background: #4F8FE6; +} #mpd { color: #0F261F; background-color: #FAED8F; @@ -131,3 +136,41 @@ button:hover { color: #0F261F; background-color: #B5D1CC; } + +menu { + background-color: rgba(15, 38, 31, 0.95); + border: none; + border-radius: 0; + transition-property: background-color; + transition-duration: .1s; + padding: 0; +} + +menuitem { + color: #DAE6E3; + border: none; + border-radius: 0; + padding: 5px 0; +} +menuitem:hover { + background: #4F8FE6; +} +menu separator { + background-color: #90A6A2; + margin: 5px 0; +} + +#custom-builds { + background-color: #90A6A2; + color: #0F261F; +} +#custom-builds.has_success { + background-color: #23C17C; +} +#custom-builds.has_running { + background-color: #FAED8F; +} +#custom-builds.has_failures { + background-color: #FA2B00; + color: #DAE6E3; +} |