Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions config/waybar/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
min-height: 0;
font-family: 'JetBrainsMono Nerd Font';
font-size: 12px;
text-shadow: none;
Comment thread
pipetogrep marked this conversation as resolved.
}

.modules-left {
Expand Down Expand Up @@ -57,6 +58,11 @@

tooltip {
padding: 2px;
text-shadow: none;
}

tooltip * {
text-shadow: none;
}

#custom-update {
Expand Down
17 changes: 17 additions & 0 deletions migrations/1779713467.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
echo "Disable inherited text shadows in Waybar"

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 👍 / 👎.

sed -i '/font-size: 12px;/a\ text-shadow: none;' "$waybar_style"
sed -i '/tooltip {/,/^}/ s/padding: 2px;/padding: 2px;\n text-shadow: none;/' "$waybar_style"

cat >> "$waybar_style" << 'EOF'

tooltip * {
text-shadow: none;
}
EOF

omarchy-restart-waybar
fi
Comment thread
pipetogrep marked this conversation as resolved.