diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index 8fe19a3c..54f74d63 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -41,6 +41,7 @@ "custom/omarchy": { "format": "\ue900", "on-click": "omarchy-menu", + "on-click-right": "omarchy-launch-terminal", "tooltip-format": "Omarchy Menu\n\nSuper + Alt + Space" }, "custom/update": { diff --git a/migrations/1761269603.sh b/migrations/1761269603.sh new file mode 100644 index 00000000..35a8b06c --- /dev/null +++ b/migrations/1761269603.sh @@ -0,0 +1,8 @@ +echo "Add right-click terminal action to waybar omarchy menu icon" + +WAYBAR_CONFIG="$HOME/.config/waybar/config.jsonc" + +if [[ -f "$WAYBAR_CONFIG" ]] && ! grep -A5 '"custom/omarchy"' "$WAYBAR_CONFIG" | grep -q '"on-click-right"'; then + sed -i '/"on-click": "omarchy-menu",/a\ "on-click-right": "omarchy-launch-terminal",' "$WAYBAR_CONFIG" + omarchy-state set restart-waybar-required +fi