Refine quickshell bar and Noctalia compatibility

This commit is contained in:
Ryan Hughes
2026-05-14 02:21:48 -04:00
parent 5086654d51
commit 7d2745b6a6
28 changed files with 1096 additions and 699 deletions
+24
View File
@@ -0,0 +1,24 @@
echo "Remove standalone night light, brightness, power profile, and power menu bar widgets (moved into quick settings or removed)"
config="$HOME/.config/omarchy/shell.json"
[[ -f $config ]] || return 0
if ! grep -Eq '"id": *"(nightLight|brightness|powerProfile|powerMenu)"' "$config"; then
return 0
fi
if omarchy-cmd-missing jq; then
return 0
fi
tmp=$(mktemp)
if jq '
def keep_widget: select(.id != "nightLight" and .id != "brightness" and .id != "powerProfile" and .id != "powerMenu");
.bar.layout.left |= map(keep_widget) |
.bar.layout.center |= map(keep_widget) |
.bar.layout.right |= map(keep_widget)
' "$config" > "$tmp" 2>/dev/null && [[ -s $tmp ]]; then
mv "$tmp" "$config"
else
rm -f "$tmp"
fi