Add Quickshell bar

This commit is contained in:
Ryan Hughes
2026-05-14 02:21:47 -04:00
parent 6b074c7a17
commit 30dc9fddde
21 changed files with 1812 additions and 24 deletions
+25 -1
View File
@@ -3,4 +3,28 @@
# omarchy:summary=Show current monospace font
# omarchy:examples=omarchy font current
grep -oP 'font-family:\s*["'\'']?\K[^;"'\'']+' ~/.config/waybar/style.css | head -n1
bar_config="$HOME/.config/omarchy/bar.json"
if [[ -f $bar_config ]]; then
font_family=$(python3 - "$bar_config" <<'PY'
import json
import sys
try:
with open(sys.argv[1]) as file:
data = json.load(file)
except (FileNotFoundError, json.JSONDecodeError):
data = {}
font = data.get("fontFamily") if isinstance(data, dict) else None
if font:
print(font)
PY
)
fi
if [[ -n $font_family ]]; then
printf '%s\n' "$font_family"
else
grep -oP 'font-family:\s*["'\'']?\K[^;"'\'']+' ~/.config/waybar/style.css | head -n1
fi