From 31d97335fc816eb73939957aedd152aaa9ff7f02 Mon Sep 17 00:00:00 2001 From: Taha Date: Sat, 23 Aug 2025 14:22:50 -0700 Subject: [PATCH] Add Omarchy icon to waybar (#1017) * Add Omarchy icon to waybar * Add step to fonts.sh to install omarchy icon font * Style and fixup * Fixup installation of the omarchy font --------- Co-authored-by: David Heinemeier Hansson --- config/omarchy.ttf | Bin 0 -> 1824 bytes config/waybar/config.jsonc | 46 +++++++++++++------------------------ install/desktop/fonts.sh | 4 ++++ migrations/1755981930.sh | 9 ++++++++ 4 files changed, 29 insertions(+), 30 deletions(-) create mode 100644 config/omarchy.ttf create mode 100644 migrations/1755981930.sh diff --git a/config/omarchy.ttf b/config/omarchy.ttf new file mode 100644 index 0000000000000000000000000000000000000000..273256d07549caa5de9121fc13110e9b704b63d5 GIT binary patch literal 1824 zcmcIkPiz!b82^204Gd`!6Ps-*6bvyQ2u?A9)qpfHY1CmlyIV4|vzbl_ zYdnx}(a;1BgacfA(~~3~3`7rxKw^US;=zL+G}?H^cxV@X-|VZj&&o_tfb4)X(osQeLF|u^)NuuP<#`0Ib)@TcFkpZX|&So&t+ zqvzkek4n$?k9&9L)p2dMdn=V-nQ)Ek!!Wozl4{EwzylRYYA>_aw_qK0kH3%p&`Vo* z$rRMH_fqw+gtH9~B@-$1Q>#!Tc*V>%=OS;yX4V3c+Jw1nB=Ut;VtsD?$f(P`S^mMe za77FG9JQO!d-bC8!Me?&!vYo$I?KY{clG|vc`?sAQ_DP5sf(FkXr z5cM{ilwZUaYAks0DMyHrptFnzdV-tjs9s0H_>Due>Z$0O`Rr^Ug>@0n3TjqTc1)Vv zv_y87&noBBtovN%+%_TFVV+^VRNt`fL2pG_w-OoF8;uQXmnVkxwmXKo<}#tOxpT1Z zH;(L`WKCVc4!n$A7y=IM9@zZ?#{^l(nKU%9U-l0SZ6)jM%5ST`+UO>7Y-J%=T^*F` z-7l@_+Lf+ft68;Lckj}Y>)Kd>n@d-gtiRpWMQhq!9i-@XZ`8CXcG_)InZBU4DlOuo z(dUTz4Yr8~49@fKr|(ZmyKAq(WxS56!4+)92ioPf{!jW58f+1NVsMW5GlOm7s|M$> z9g7ARsQ=dBGNy3H;0j)qopIzPezS8jXv~LRVk9$71FH~Oj{>syT2B}w)&J2;5|4a{?2 zs@rJWC{58b!5n7k)q;b4JfpG4A|~n6%KSW}oM-5FhP~u4?i}-sQ=6hrxo)yKaI^K) zJLHIIYiG8z)cEwSvTrr2jl&q_s6XakrI%LP`%~*(>c4t3>Jv+HVoP2MQk0VPNf||R Qs1i#go+RQ+Q?&Vkha6VlMF0Q* literal 0 HcmV?d00001 diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index cec169de..e9e3ea6c 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -4,15 +4,8 @@ "position": "top", "spacing": 0, "height": 26, - "modules-left": [ - "custom/omarchy", - "hyprland/workspaces" - ], - "modules-center": [ - "group/status-cluster", - "clock", - "custom/update" - ], + "modules-left": ["custom/omarchy", "hyprland/workspaces"], + "modules-center": ["group/status-cluster", "clock", "custom/update"], "modules-right": [ "group/tray-expander", "bluetooth", @@ -46,7 +39,7 @@ } }, "custom/omarchy": { - "format": "", + "format": "\ue900", "on-click": "omarchy-menu", "tooltip-format": "Omarchy Menu\n\nSuper + Alt + Space" }, @@ -70,11 +63,11 @@ "on-click-right": "omarchy-cmd-tzupdate" }, "network": { - "format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"], - "format" : "{icon}", - "format-wifi" : "{icon}", - "format-ethernet" : "󰀂", - "format-disconnected" : "󰖪", + "format-icons": ["󰤯", "󰤟", "󰤢", "󰤥", "󰤨"], + "format": "{icon}", + "format-wifi": "{icon}", + "format-ethernet": "󰀂", + "format-disconnected": "󰖪", "tooltip-format-wifi": "{essid} ({frequency} GHz)\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", "tooltip-format-ethernet": "⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", "tooltip-format-disconnected": "Disconnected", @@ -85,15 +78,11 @@ "battery": { "format": "{capacity}% {icon}", "format-discharging": "{icon}", - "format-charging": "{icon}", - "format-plugged": "", + "format-charging": "{icon}", + "format-plugged": "", "format-icons": { - "charging": [ - "󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂋", "󰂅" - ], - "default": [ - "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹" - ] + "charging": ["󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂋", "󰂅"], + "default": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"] }, "format-full": "󰂅", "tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%", @@ -128,16 +117,13 @@ "transition-duration": 600, "children-class": "tray-group-item" }, - "modules": [ - "custom/expand-icon", - "tray" - ] + "modules": ["custom/expand-icon", "tray"] }, "group/status-cluster": { "orientation": "inherit", "modules": [ "custom/status-dnd", - "custom/status-nightlight", + "custom/status-nightlight", "custom/status-recording", "custom/status-idle" ] @@ -149,14 +135,14 @@ "on-click": "makoctl mode -t do-not-disturb" }, "custom/status-nightlight": { - "exec": "omarchy-status-daemon nightlight", + "exec": "omarchy-status-daemon nightlight", "return-type": "json", "interval": 1, "on-click": "omarchy-toggle-nightlight" }, "custom/status-recording": { "exec": "omarchy-status-daemon recording", - "return-type": "json", + "return-type": "json", "interval": 1, "on-click": "omarchy-cmd-screenrecord-stop" }, diff --git a/install/desktop/fonts.sh b/install/desktop/fonts.sh index 0076417f..28044273 100644 --- a/install/desktop/fonts.sh +++ b/install/desktop/fonts.sh @@ -2,6 +2,10 @@ yay -S --noconfirm --needed ttf-font-awesome ttf-cascadia-mono-nerd ttf-ia-writer noto-fonts noto-fonts-emoji +mkdir -p ~/.local/share/fonts +cp ~/.local/share/omarchy/config/omarchy.ttf ~/.local/share/fonts/ +fc-cache + if [ -z "$OMARCHY_BARE" ]; then yay -S --noconfirm --needed ttf-jetbrains-mono noto-fonts-cjk noto-fonts-extra fi diff --git a/migrations/1755981930.sh b/migrations/1755981930.sh new file mode 100644 index 00000000..3e9637cd --- /dev/null +++ b/migrations/1755981930.sh @@ -0,0 +1,9 @@ +echo "Add Omarchy icon to the Waybar" + +mkdir -p ~/.local/share/fonts +cp ~/.local/share/omarchy/config/omarchy.ttf ~/.local/share/fonts/ +fc-cache + +echo +gum confirm "Replace current Waybar config (backup will be made)?" && omarchy-refresh-waybar +