Skip to content

Fix inherited text shadows in Waybar tooltips#6133

Open
pipetogrep wants to merge 3 commits into
basecamp:masterfrom
pipetogrep:fix-waybar-tooltip-text-shadow
Open

Fix inherited text shadows in Waybar tooltips#6133
pipetogrep wants to merge 3 commits into
basecamp:masterfrom
pipetogrep:fix-waybar-tooltip-text-shadow

Conversation

@pipetogrep

@pipetogrep pipetogrep commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • disable inherited text shadows in the base Waybar CSS
  • add a guarded migration for existing copied Waybar configs

Why

On some themes, GTK text-shadow styling can leak into Waybar tooltips and make dropdown text look doubled. Omarchy Waybar themes only define colors, so the base Waybar CSS should explicitly opt out of text shadows.

Validation

  • git diff --check
  • bash -n migrations/1779713467.sh
  • tested the migration against a temporary HOME with a copied Waybar config

Screenshots

Before

image

After

image

@pipetogrep pipetogrep marked this pull request as ready for review June 24, 2026 18:55
Copilot AI review requested due to automatic review settings June 24, 2026 18:55

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8fcb557c14

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread migrations/1779713467.sh Outdated

waybar_style="$HOME/.config/waybar/style.css"

if [[ -f $waybar_style ]] && ! grep -q "text-shadow: none" "$waybar_style"; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Guard the tooltip reset independently

When a user already has any text-shadow: none in their copied Waybar stylesheet (for example from a local module-specific tweak), this whole migration is skipped before adding the new tooltip * override. The default fix relies on the tooltip-specific selector to beat inherited GTK tooltip styling, so those users keep the doubled tooltip text even though the migration is recorded as applied; check for the tooltip rule itself or insert the missing rules independently.

Useful? React with 👍 / 👎.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses GTK text-shadow styling leaking into Waybar tooltips by explicitly disabling text shadows in Omarchy’s base Waybar CSS and adding a migration to patch existing user-copied Waybar configs.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Changes:

  • Disable inherited text-shadow globally in the base Waybar style.css.
  • Explicitly disable text-shadow for tooltip and its contents to prevent doubled-looking tooltip text.
  • Add a migration intended to update already-copied user Waybar styles.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
migrations/1779713467.sh Adds a migration to patch existing user-copied Waybar CSS to disable inherited text shadows.
config/waybar/style.css Updates the default Waybar CSS to explicitly disable text shadows (including tooltip-specific overrides).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread migrations/1779713467.sh
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 24, 2026 19:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread config/waybar/style.css
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 24, 2026 19:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread migrations/1779713467.sh
Comment on lines +3 to +6
waybar_style="$HOME/.config/waybar/style.css"
marker="omarchy:disable-text-shadow"

if [[ -f $waybar_style ]] && ! grep -qF "$marker" "$waybar_style"; then
@brink-lab

Copy link
Copy Markdown
Contributor

A kind heads-up :)

The upcoming Omarchy 4 release moves away from Waybar in favour of a new quickshell based solution.
Therefore, this is a topic we should check for the new shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants